Skip to content

Commit 574262f

Browse files
authored
fix: drop warning for untagged clouds (#1281)
The topic around cluster IDs has not seen much tracktion upstream. We can remove the bypass warning, but keep the check, if this gets relevant in the future.
1 parent 0cba535 commit 574262f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

main.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ func cloudInitializer(config *config.CompletedConfig) cloudprovider.Interface {
7272
klog.Fatalf("Cloud provider is nil")
7373
}
7474

75-
if !cloud.HasClusterID() {
76-
if config.ComponentConfig.KubeCloudShared.AllowUntaggedCloud {
77-
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")
78-
} else {
79-
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")
80-
}
75+
if !cloud.HasClusterID() && !config.ComponentConfig.KubeCloudShared.AllowUntaggedCloud {
76+
klog.Fatalf("no ClusterID found; the cloud provider requires a ClusterID to function. Set --allow-untagged-cloud=true to bypass this check")
8177
}
78+
8279
return cloud
8380
}
8481

0 commit comments

Comments
 (0)