Skip to content

Commit aaec77a

Browse files
authored
Merge pull request kubernetes#77900 from SataQiu/fix-issue-1513
[kubeadm] improve validation message for join command
2 parents c50ff35 + 4fcfb97 commit aaec77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/apis/kubeadm/validation/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func ValidateDiscoveryBootstrapToken(b *kubeadm.BootstrapTokenDiscovery, fldPath
146146
}
147147

148148
if len(b.CACertHashes) == 0 && !b.UnsafeSkipCAVerification {
149-
allErrs = append(allErrs, field.Invalid(fldPath, "", "using token-based discovery without caCertHashes can be unsafe. Set unsafeSkipCAVerification to continue"))
149+
allErrs = append(allErrs, field.Invalid(fldPath, "", "using token-based discovery without caCertHashes can be unsafe. Set unsafeSkipCAVerification as true in your kubeadm config file or pass --discovery-token-unsafe-skip-ca-verification flag to continue"))
150150
}
151151

152152
allErrs = append(allErrs, ValidateToken(b.Token, fldPath.Child(kubeadmcmdoptions.TokenStr))...)

0 commit comments

Comments
 (0)