Skip to content

Commit 018ee41

Browse files
mozillazgneolit123
andcommitted
kubeadm: fix a wrong comment
apply commit suggestion Co-authored-by: Lubomir I. Ivanov <[email protected]>
1 parent fc7520b commit 018ee41

File tree

1 file changed

+1
-1
lines changed
  • cmd/kubeadm/app/discovery/file

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/discovery/file/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func ValidateConfigInfo(config *clientcmdapi.Config, discoveryTimeout time.Durat
9898
clusterinfoCM, lastError = client.CoreV1().ConfigMaps(metav1.NamespacePublic).Get(context.TODO(), bootstrapapi.ConfigMapClusterInfo, metav1.GetOptions{})
9999
if lastError != nil {
100100
if apierrors.IsForbidden(lastError) {
101-
// If the request is unauthorized, the cluster admin has not granted access to the cluster info configmap for unauthenticated users
101+
// If the request fails with a forbidden error, the cluster admin has not granted access to the cluster info configmap for anonymous clients.
102102
// In that case, trust the cluster admin and do not refresh the cluster-info data
103103
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)
104104
return true, nil

0 commit comments

Comments
 (0)