Merge pull request #86070 from rosti/kubeadm-cc-user-configs-checksum-a

kubeadm: distinguish between generated and user supplied component configs
This commit is contained in:
Kubernetes Prow Robot
2020-06-03 05:44:18 -07:00
committed by GitHub
22 changed files with 739 additions and 167 deletions

View File

@@ -445,6 +445,12 @@ type ComponentConfig interface {
// Default patches the component config with kubeadm preferred defaults
Default(cfg *ClusterConfiguration, localAPIEndpoint *APIEndpoint, nodeRegOpts *NodeRegistrationOptions)
// IsUserSupplied indicates if the component config was supplied or modified by a user or was kubeadm generated
IsUserSupplied() bool
// SetUserSupplied sets the state of the component config "user supplied" flag to, either true, or false.
SetUserSupplied(userSupplied bool)
}
// ComponentConfigMap is a map between a group name (as in GVK group) and a ComponentConfig