From 018ee41e6f5263e5d7d15fc7bc4d6f76818d6d51 Mon Sep 17 00:00:00 2001 From: Huang Huang Date: Fri, 10 Jan 2025 20:59:55 +0800 Subject: [PATCH] kubeadm: fix a wrong comment apply commit suggestion Co-authored-by: Lubomir I. Ivanov --- cmd/kubeadm/app/discovery/file/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/discovery/file/file.go b/cmd/kubeadm/app/discovery/file/file.go index 4c937679df7..76f169c618a 100644 --- a/cmd/kubeadm/app/discovery/file/file.go +++ b/cmd/kubeadm/app/discovery/file/file.go @@ -98,7 +98,7 @@ func ValidateConfigInfo(config *clientcmdapi.Config, discoveryTimeout time.Durat clusterinfoCM, lastError = client.CoreV1().ConfigMaps(metav1.NamespacePublic).Get(context.TODO(), bootstrapapi.ConfigMapClusterInfo, metav1.GetOptions{}) if lastError != nil { if apierrors.IsForbidden(lastError) { - // If the request is unauthorized, the cluster admin has not granted access to the cluster info configmap for unauthenticated users + // If the request fails with a forbidden error, the cluster admin has not granted access to the cluster info configmap for anonymous clients. // In that case, trust the cluster admin and do not refresh the cluster-info data klog.Warningf("[discovery] Could not access the %s ConfigMap for refreshing the cluster-info information, but the TLS cert is valid so proceeding...\n", bootstrapapi.ConfigMapClusterInfo) return true, nil