Skip to content

Commit cdbcc87

Browse files
committed
HasClusterID no longer needed
1 parent 07a461f commit cdbcc87

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

main.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,5 @@ func cloudInitializer(config *config.CompletedConfig) cloudprovider.Interface {
4747
klog.Fatalf("Cloud provider is nil")
4848
}
4949

50-
if !cloud.HasClusterID() {
51-
if config.ComponentConfig.KubeCloudShared.AllowUntaggedCloud {
52-
klog.Warning("detected a cluster without a ClusterID. A ClusterID will be required in the future. Please tag your cluster to avoid any future issues")
53-
} else {
54-
klog.Fatalf("no ClusterID found. A ClusterID is required for the cloud provider to function properly. This check can be bypassed by setting the allow-untagged-cloud option")
55-
}
56-
}
57-
5850
return cloud
5951
}

0 commit comments

Comments
 (0)