// Choose the right address for the API Server to advertise. If the advertise address is localhost or 0.0.0.0, the default interface's IP address is used
returnfmt.Errorf("couldn't parse kubernetes version %q: %v",cfg.KubernetesVersion,err)
}
ifk8sVersion.LT(minK8sVersion){
returnfmt.Errorf("this version of kubeadm only supports deploying clusters with the control plane version >= v%s. Current version: %s",kubeadmconstants.MinimumControlPlaneVersion,cfg.KubernetesVersion)
returnfmt.Errorf("this version of kubeadm only supports deploying clusters with the control plane version >= %s. Current version: %s",kubeadmconstants.MinimumControlPlaneVersion.String(),cfg.KubernetesVersion)
}
fmt.Printf("[init] Using Kubernetes version: %s\n",cfg.KubernetesVersion)
// MinimumCSRSARApproverVersion specifies the minimum kubernetes version that can be used for enabling the new-in-v1.7 CSR approver based on a SubjectAccessReview
// MinimumAPIAggregationVersion specifies the minimum kubernetes version that can be used enabling the API aggregation in the apiserver and the front proxy flags