From a1fd50d53a17b78f8dddb9d5bc2bee16ea5e519d Mon Sep 17 00:00:00 2001 From: chymy Date: Mon, 18 Jul 2022 16:48:29 +0800 Subject: [PATCH] kubeadm: fix comment typo Signed-off-by: chymy --- cmd/kubeadm/app/componentconfigs/utils.go | 2 +- cmd/kubeadm/app/constants/constants.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kubeadm/app/componentconfigs/utils.go b/cmd/kubeadm/app/componentconfigs/utils.go index c77b78f3fc1..9d078122fed 100644 --- a/cmd/kubeadm/app/componentconfigs/utils.go +++ b/cmd/kubeadm/app/componentconfigs/utils.go @@ -64,7 +64,7 @@ func (errs UnsupportedConfigVersionsErrorMap) Error() string { } // warnDefaultComponentConfigValue prints a warning if the user modified a field in a certain -// CompomentConfig from the default recommended value in kubeadm. +// ComponentConfig from the default recommended value in kubeadm. func warnDefaultComponentConfigValue(componentConfigKind, paramName string, defaultValue, userValue interface{}) { klog.Warningf("The recommended value for %q in %q is: %v; the provided value is: %v", paramName, componentConfigKind, defaultValue, userValue) diff --git a/cmd/kubeadm/app/constants/constants.go b/cmd/kubeadm/app/constants/constants.go index 1176f5d11cc..93ae37a62b8 100644 --- a/cmd/kubeadm/app/constants/constants.go +++ b/cmd/kubeadm/app/constants/constants.go @@ -189,7 +189,7 @@ const ( // system:nodes group subject is removed if present. NodesClusterRoleBinding = "system:node" - // KubeletBaseConfigMapRolePrefix defines the base kubelet configuration ConfigMap. + // KubeletBaseConfigMapRole defines the base kubelet configuration ConfigMap. KubeletBaseConfigMapRole = "kubeadm:kubelet-config" // KubeProxyClusterRoleBindingName sets the name for the kube-proxy CluterRoleBinding KubeProxyClusterRoleBindingName = "kubeadm:node-proxier"