-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
✨ (go/v3) - Update kustomize from v3.8.7 to v4.4.1 and use replacements instead of vars #2498
✨ (go/v3) - Update kustomize from v3.8.7 to v4.4.1 and use replacements instead of vars #2498
Conversation
Welcome @afritzler! |
Hi @afritzler. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
pkg/plugins/common/kustomize/v1/scaffolds/internal/templates/config/kdefault/kustomization.go
Show resolved
Hide resolved
I guess it also makes sense to remove the crd/patches/enablecainjection_patch.go as those are not really needed anymore. |
Also how about all the test data and the documentation (book)? Those CERTIFICATE_NAMESPACE, CERTIFICATE_NAME, SERVICE_NAMESPACE and SERVICE_NAME are used all over the place and are not really needed when using the |
/ok-to-test |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
824443d
to
1bb22ec
Compare
1bb22ec
to
e02ac93
Compare
/test pull-kubebuilder-e2e-k8s-1-15-12 |
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 contribution 🥇
The appdiff ci checker is failing in this case because of the kustomize update.
It is fine.
The changes here shows fine for me.
/approved
It would be nice to get a second reviewer as well
For the record this will make the default skeleton incompatible with |
Hi @coderanger, Thank you for your help:
Hi @afritzler, Based on the above comment, we cannot move with this one. We need support for the latest 3 k8s versions at least. /hold Also, in this case, it shows that we would need to address them via go/v4 plugin instead. I think we need:
I did the above actions see: #2503 In this way, are you ok with we closing this PR? |
/approved cancel Since it was identified that would mean no longer support k8s < 1.22 |
/approved cancel |
/hold |
we checked that we cannot move forward with.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: afritzler The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@camilamacedo86 as Maybe we can revisit this one once k8s v1.25 hits the road. :-) |
@afritzler If you want to release it before then, you can make your own Kubebuilder layout plugin that extends the core one maybe? :) |
@coderanger I thought about it - but then you have the maintenance effort. We fixed it now via documentation™️ for us 😄 |
HI @afritzler, Thank you a lot for your contribution. 🥇 I am closing this one for now. |
Since the usage of
vars
in kustomize will be deprecated soon it would make sense to usereplacements
instead as advised in the warning:Another issue we were facing was
vars
-name collisions when using multiplekubebuilder
based controllers in one root kustomization asvars
are being propagated to the top.To test the correct behaviour you can run
to make sure that the expected result matches the one from the original
var
based one. (of course make sure that the webhook configuration is commented out)