-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Machine and KubeadmControlPlane disagree on k8s version validation #3128
Comments
Let's reconcile the two and make sure they adhere to the same standard |
Is there a reason why both |
The decision was as a result of I did originally have it defaulting to add the v prefix for you. |
/assign |
/retitle "Machine and KubeadmControlPlane disagree on k8s version validation" |
/retitle Machine and KubeadmControlPlane disagree on k8s version validation |
/milestone v0.3.7 |
What steps did you take and what happened:
Generate a machinepool-flavored cluster manifest:
clusterctl config cluster capz-machinepool -f machinepool --worker-machine-count 1 --kubernetes-version 1.18.3 > capz-machinepool.yaml
Then apply the manifest and get a validation error on the "version" field:
Adding a
v
prefix tov1.18.3
in the manifest fixes it, but note that:MachinePool
in the same manifest is happy with either1.18.3
orv1.18.3
AFAICTWhat did you expect to happen:
I expected that CAPZ and
clusterctl
would create a valid manifest without built-in validation errors. Perhapsclusterctl
itself should have errored rather than allow "1.18.3" through.Anything else you would like to add:
Environment:
kubectl version
): v1.18.3/etc/os-release
):/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: