-
Notifications
You must be signed in to change notification settings - Fork 1.4k
⚠️ Improve Cluster CRD Go type #12489
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
⚠️ Improve Cluster CRD Go type #12489
Conversation
78f8bfd
to
4e51eb8
Compare
/assign @JoelSpeed @fabriziopandini |
4e51eb8
to
8ac73bb
Compare
8ac73bb
to
5004212
Compare
/test pull-cluster-api-e2e-main |
@JoelSpeed Would be good if you can review the changes to the API |
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.
API changes are good as far as I can see
Nice. Found an error in a ClusterClass through MinProperties (https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_cluster-api/12489/pull-cluster-api-e2e-main/1945129804692983808):
|
Thank you! /test pull-cluster-api-e2e-main |
@sbueringer: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/override pull-cluster-api-e2e-main /test pull-cluster-api-e2e-main-gke |
@sbueringer: Overrode contexts on behalf of sbueringer: pull-cluster-api-e2e-main In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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 to see improvements both on yaml and go types!
allOf: | ||
- minProperties: 1 | ||
- minProperties: 1 |
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.
Looks like controller-gen is not de-duping.
Could you kindly double check this is not an issue + may be open and issue in controller-gen
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 works:
- The CRD can be deployed (the apiserver doesn't reject it)
- See ⚠️ Improve Cluster CRD Go type #12489 (comment)
Opened an issue: kubernetes-sigs/controller-tools#1234
@@ -118,7 +118,7 @@ spec: | |||
kind: KubeadmControlPlaneTemplate | |||
name: in-memory-control-plane | |||
machineHealthCheck: | |||
unhealthyConditions: | |||
unhealthyNodeConditions: |
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.
nice catch!
/lgtm |
LGTM label has been added. Git tree hash: 007bd1c3b4520ba4beb4f82087ea099033858a70
|
[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 |
What this PR does / why we need it:
Did an audit for the Cluster CRD go type and mostly removed unnecessary pointers to make it easier to use the type. This also lead to some changes in other types for consistency.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Part of #10852