-
Notifications
You must be signed in to change notification settings - Fork 233
fix: missing immutable setup under type_def #649
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
base: main
Are you sure you want to change the base?
fix: missing immutable setup under type_def #649
Conversation
|
Hi @justin0u0. Thanks for your PR. I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
a-hilaly
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.
Thank you @justin0u0 !
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, justin0u0 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 |
|
Hi @a-hilaly, thanks for the review. Do you need anything from me to get this pull request merged? Thanks! |
|
would it be possible to have some unit tests for this feature? thank you! |
|
/ok-to-test |
|
actually second thoughts not sure we have the mechanics to unit tests generated code via templating :) |
Yeah, as far as I know there is no unit testing for the templates for now. And it is difficult to write unit tests for code generation. Maybe we need to introduce snapshot testing? |
|
@justin0u0: The following tests failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
|
@justin0u0 i think ideally we need one of two things:
|
|
/test s3-controller-test |
|
Cc @michaelhtm |
This PR fixes an issue where the
is_immutableconfiguration was not being applied to nested fields (e.g.HealthCheckConfig.Type).Verified using
route53-controller. The generator now correctly applies validation markers to immutable nested fields inHealthCheckConfig, resulting in the correctx-kubernetes-validationsin the output CRD.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.