Alicloud: fix status discovery

This commit is contained in:
Xiaoyu Zhong 2019-10-16 22:16:03 +08:00
parent 2e646e2eec
commit 2eeca3a9a6
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ func (s *CloudDiscoveryStatusStore) GetApiIngressStatus(cluster *kops.Cluster) (
return nil, err
}
if aliCloud, ok := cloud.(aliup.ALICloud); ok {
return aliCloud.GetApiIngressStatus(cluster)
}
if gceCloud, ok := cloud.(gce.GCECloud); ok {
return gceCloud.GetApiIngressStatus(cluster)
}