Merge pull request #142729 from kpdagrt22/docs/cloud-provider-clusterid-contract

cloud-provider: document when HasClusterID is checked and what it gates
This commit is contained in:
kubernetes-prow[bot] authored and GitHub committed 2026-10-22 21:57:55 +00:00
commit 4cc5a2d3de
1 file changed
+6 -1
+6 -1
View File
@@ -65,7 +65,12 @@ type Interface interface {
Routes() (Routes, bool)
// ProviderName returns the cloud provider ID.
ProviderName() string
// HasClusterID returns true if a ClusterID is required and set
// HasClusterID returns true if the cluster has a ClusterID set. The
// cloud-controller-manager checks this during cloud initialization at startup
// and exits on false unless the deprecated --allow-untagged-cloud flag is set.
// The framework only reads this boolean and never reads the ID itself, so how a
// provider stores and verifies it (for example, that instances carry the cluster
// tag) is up to the provider.
HasClusterID() bool
}