-
Notifications
You must be signed in to change notification settings - Fork 30
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
Empty spec.template.spec.version makes ClusterClass fail #354
Comments
Resurfacing the discussion details and my findings we had offline on slack: I am a bit unsure why not just set
So, I mean version should be read from On the other note, I also previously mentioned it, CAPRKE2 API diverged from KCP in terms of what fields they/we have and not quiet following it, since CC was designed with KCP in mind. To align with KCP, we need to re-organize/shuffle our API fields to make our API (fields) match with KCP and that would need probably an API bump. I think, generally this issue is not really a bug but a neat, since we are used to KCPs API structure, however, CAPRKE2 API is different and it has the reasons why it is like that I believe. |
@furkatgofurov7 I think this is still a bug. The main problem is that the validation is too strict and doesn't allow to write a CC that uses this version as a variable. - name: rKE2ControlPlaneTemplate
definitions:
- selector:
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: RKE2ControlPlaneTemplate
matchResources:
controlPlane: true
jsonPatches:
- op: add
path: "/spec/template/spec/version"
valueFrom:
variable: k8sVersion Am I doing anything wrong? It is the same problem as #343, just on a different field. Again, maybe I'm doing it wrong, not sure, if so please update the CC example in this repo. Thank you. |
As mentioned by @alexander-demicev , the version validation was tweaked in one of the latest releases. I don't want to take the liberty to close the issue, but it can be closed from my point of view. |
What happened:
[A clear and concise description of what the bug is.]
In my ClusterClass, the
RKE2ControlPlaneTemplate
is defined as follows (note: no spec.template.spec.version):Cluster definition carries the version in
spec.topology.version
as expected:However application fails with:
What did you expect to happen:
No failure. The version should be read from the
Cluster.spec.topology.version
.How to reproduce it:
See above or check out the reference
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
/etc/os-release
):The text was updated successfully, but these errors were encountered: