Skip to content

Commit

Permalink
HasClusterID no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaitsev committed Aug 4, 2023
1 parent 07a461f commit cdbcc87
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,5 @@ func cloudInitializer(config *config.CompletedConfig) cloudprovider.Interface {
klog.Fatalf("Cloud provider is nil")
}

if !cloud.HasClusterID() {
if config.ComponentConfig.KubeCloudShared.AllowUntaggedCloud {
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")
} else {
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")
}
}

return cloud
}

0 comments on commit cdbcc87

Please sign in to comment.