-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 ClusterClass: fix nullable variables #5756
馃悰 ClusterClass: fix nullable variables #5756
Conversation
33cd585
to
fd35be8
Compare
/assign @fabriziopandini @killianmuldoon |
fd35be8
to
8206cc9
Compare
/retest |
@@ -892,7 +892,10 @@ spec: | |||
instead of a custom JSON type, because controller-tools | |||
has a hard-coded schema for apiextensionsv1.JSON which | |||
cannot be produced by another type via controller-tools, | |||
i.e. it''s not possible to have no type field. Ref: https://github.com/kubernetes-sigs/controller-tools/blob/d0e03a142d0ecdd5491593e941ee1d6b5d91dba6/pkg/crd/known_types.go#L106-L111' | |||
i.e. it''s not possible to have no type field. Ref: https://github.com/kubernetes-sigs/controller-tools/blob/d0e03a142d0ecdd5491593e941ee1d6b5d91dba6/pkg/crd/known_types.go#L106-L111 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e. it''s not possible to have no type field. Ref: https://github.com/kubernetes-sigs/controller-tools/blob/d0e03a142d0ecdd5491593e941ee1d6b5d91dba6/pkg/crd/known_types.go#L106-L111 | |
i.e. it's not possible to have no type field. Ref: https://github.com/kubernetes-sigs/controller-tools/blob/d0e03a142d0ecdd5491593e941ee1d6b5d91dba6/pkg/crd/known_types.go#L106-L111 |
nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be the way controller-tools generates it, but I worked around it
One teeny nit from me. /lgtm |
internal/topology/variables/cluster_variable_defaulting_test.go
Outdated
Show resolved
Hide resolved
8206cc9
to
bfc2e11
Compare
Signed-off-by: Stefan B眉ringer buringerst@vmware.com
bfc2e11
to
40af388
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Stefan B眉ringer buringerst@vmware.com
What this PR does / why we need it:
Before this PR it was not possible to actually use nullable variables by setting them to
null
(in the YAML).This PR makes the
Value
field nullable and makes sure the variable validation can handle itWhich issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #