-
Couldn't load subscription status.
- Fork 1.4k
⚠️ Move infrastructure namingStrategy field in ClusterClass #12216
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
⚠️ Move infrastructure namingStrategy field in ClusterClass #12216
Conversation
8f17b1f to
bc159d7
Compare
|
/test pull-cluster-api-e2e-main |
bc159d7 to
b666b41
Compare
|
/test pull-cluster-api-e2e-main |
b666b41 to
afce0bd
Compare
|
/test pull-cluster-api-e2e-main |
| kind: DockerClusterTemplate | ||
| name: quick-start-cluster | ||
| infrastructureNamingStrategy: | ||
| namingStrategy: |
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.
This API version is v1beta1, so should we keep it ?
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.
Great catch! Thx! Reverted this diff
Signed-off-by: Stefan Büringer [email protected]
afce0bd to
a7fb549
Compare
|
/test pull-cluster-api-e2e-main |
| // infrastructureNamingStrategy allows changing the naming pattern used when creating the infrastructure object. | ||
| // +optional | ||
| InfrastructureNamingStrategy *InfrastructureNamingStrategy `json:"infrastructureNamingStrategy,omitempty"` | ||
| Infrastructure InfrastructureClass `json:"infrastructure,omitempty"` |
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 know this should be a pointer, but I chose to be consistent with the controlPlane field below for now.
Added a sub-task to the v1beta2 umbrella issue to follow-up
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.
We need to make sure that we correct this before we ship.
InfrastructureClass is a struct, and cannot be omitempty'd correctly.
LocalObjectTemplate is inlined and has a required field within.
The required field should not accept "", which means a structured client marshalling this right now creates an invalid object and cannot treat Infrastructure as truly optional
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 agree. I just don't want to create a different set of problems between this field and the ControlPlane field
Because even if we make the Infrastructure + ControlPlane fields a pointer it's still not perfect as the required Ref field in there is a pointer, so we have to change more to fix this all up
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.
Yep, that's fine, is the umbrella issue tracking what's required and what's optional to be completed before the next release?
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.
Currently we only flagged must have (P0) and nice to have (P1) for the alpha (in 2-3 weeks)
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.
My personal goal would be to fix all these marshalling problems if somehow possible once the KAL linter is available.
Independent of that. I don't know if this should be a showstopper for the release, given we have the exact same situation for the existing ControPlane field
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.
The optionalfields work for KAL I think is pretty close. Might be able to get that here next week, and at least it will highlight where we have marshalling issues. Fixes will still be partially manual/need to be discussed
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.
If it helps for the current PR. I think the PR doesn't make it worse as we had the same problem on this field before? (probably? :))
|
/lgtm |
|
LGTM label has been added. Git tree hash: 0b8d0aea0d269c2294f46226a302e6aeedfd7bbe
|
|
[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 |
|
/lgtm |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Follow-up to #11671 (comment)
Part of #10852