-
Notifications
You must be signed in to change notification settings - Fork 591
CFE-581 : Update Infrastructure CRD to support azure tags in status #1280
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
Conversation
|
Hello @bharath-b-rh! Some important instructions when contributing to openshift/api: For merging purposes, this repository follows the no-Feature-Freeze process which means that in addition to the standard
OR
Who should apply these qe/docs/px labels?
|
|
/cc @JoelSpeed |
|
/label tide/merge-method-squash |
|
/unhold |
|
Thank you @JoelSpeed for the comments!! |
|
Could you please squash the commits manually? We are not supposed to use merge-method-squash in OpenShift as it causes issues copying repos to the ART build system |
|
/remove-label tide/merge-method-squash |
|
I think some changes have happened since we had discussion about whether to include this in the spec or status. |
|
CC @TrilokGeer could you please weigh in with your thoughts related to my above comment |
|
The AWS tags update enhancement is presently not considerable as is due to inherent problems resulting in some resources not being tagged with latest updates. Because of this limitation, infrastructure can need not have spec fields, but related controller managing the resource would have override spec respectively, similar to machineset. |
|
commit addresses an issue reported during pre-merge tests, where it was found DNS Zone resource allows to add tag only if key contains letters, numbers, underscores, hyphens and periods and start with letter, end with letter, number or an underscore. openshift/enhancements#1329 is created for updating the enhancement with the observations/changes made during the course of implementation. |
|
/cc @JoelSpeed |
JoelSpeed
left a comment
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've discussed with @deads2k and we've concluded that this field should reside on the status for now. If we ever need to evolve this API to allow modification, you will need a controller to own the spec field, validate the input and then update the status field if the platform accepts the update. Consumers should always consume from the status field, as these are the accepted values.
If I understand correctly, the initial intention is that this field is supposed to be immutable? We should enforce that immutability with CEL validation, please check the example API (example/v1) immutableField for an example of that
CEL validation would not be required, because we can't modify status sub-resource, am I correct? |
No, that's no longer true. Kubectl added a subresource flag in 1.24 that allows users to edit the status of objects directly, so CEL validation should be added |
|
PR was marked closed while resolving conflicts and removing the duplicate commits. |
JoelSpeed
left a comment
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.
Apologies, noticed another couple of small bits
|
API looks good for me, so we can make sure all the relevant PRs are updated It would be good to get some integration tests to test the validations, are you familiar with how we are testing those? There's files ending .testsuite.yaml in the folder, which have some tests that can be written, more details here I'd like to test the creation and immutability as well as the string validation patterns please |
|
/approve I'd like to see some pre-merge testing on the installer PR before we merge this to make sure the flow of install works correctly and that the tags modification works as expected. Please ask whoever QEs this for the installer to also add a QE approved label on this PR |
|
pre-merge testing is passed, details see [comments in CFE-581](https://issues.redhat.com/browse/CFE-581?focusedCommentId=21682592&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-21682592). |
|
/hold I left a comment on the QE validation, I don't think the API has been tested correctly as the edit was silently dropped, it should have returned an error |
|
/hold cancel |
|
/label px-approved |
|
/label docs-approved |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bharath-b-rh, JoelSpeed The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@bharath-b-rh: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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/test-infra repository. I understand the commands that are listed here. |
PR is for adding new field resourceTags in platformStatus for azure platform type, which will be used by in-cluster operators for adding the tags to the created azure resources.