mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
kubeadm: make pre-release warning log less confusing
This commit is contained in:
parent
acc64759f5
commit
719c1d2680
@ -125,8 +125,8 @@ func NormalizeKubernetesVersion(cfg *kubeadmapi.ClusterConfiguration) error {
|
|||||||
mcpVersion := constants.MinimumControlPlaneVersion
|
mcpVersion := constants.MinimumControlPlaneVersion
|
||||||
versionInfo := componentversion.Get()
|
versionInfo := componentversion.Get()
|
||||||
if isKubeadmPrereleaseVersion(&versionInfo, k8sVersion, mcpVersion) {
|
if isKubeadmPrereleaseVersion(&versionInfo, k8sVersion, mcpVersion) {
|
||||||
klog.V(1).Infof("WARNING: tolerating control plane version %s, assuming that k8s version %s is not released yet",
|
klog.V(1).Infof("WARNING: tolerating control plane version %s as a pre-release version", cfg.KubernetesVersion)
|
||||||
cfg.KubernetesVersion, mcpVersion)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// If not a pre-release version, handle the validation normally.
|
// If not a pre-release version, handle the validation normally.
|
||||||
|
Loading…
Reference in New Issue
Block a user