-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fix generate HRQ CRD from markers #300
Fix generate HRQ CRD from markers #300
Conversation
Thank you for your fix. It may have been caused by my fix #295 ...
As you may know that, if we make status subresource, we can independently update status field using StatusClient which is member of client.Client. Although this use case dosn't seems to exist in HNC, it is generally recommended to make status subresource. |
@mochizuki875 We use the status subresource in all other controllers I am involved in, so HNC is quite special in this sense. I have earlier looked at doing this in HNC, and I think it is not a simple task..... But good luck if you make an attempt! 👍 |
@erikgb |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erikgb, rjbez17 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 |
While working on #285, I noticed that running
make manifests
updates the HRQ CRD. This also happens on the master branch, which I think is not intentional and wrong. This PR fixes this by regenerating the HRQ CRD.The PR also marks the current HRQ as the storage version - which I discovered as missing when comparing the kubebuilder markers for the CRDs.
I think the difference is caused by a minor bug in
controller-gen
, and is related to the recently added print columns on HRQ. The columns include fields from the HRQ status, and I think there is some code in controller-gen assuming the CRD has a status subresource when including fields from status as print columns.I really think we should have status as subresources - especially on HRQ, but I don't have the bandwidth to fix that.
/cc @adrianludwin