From 2eeca3a9a6651efb1b26274426d4cd0c6119ed98 Mon Sep 17 00:00:00 2001 From: Xiaoyu Zhong Date: Wed, 16 Oct 2019 22:16:03 +0800 Subject: [PATCH] Alicloud: fix status discovery --- pkg/commands/status_discovery.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/commands/status_discovery.go b/pkg/commands/status_discovery.go index 0122e8b1ae..4f9261a4d1 100644 --- a/pkg/commands/status_discovery.go +++ b/pkg/commands/status_discovery.go @@ -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) }