-
Notifications
You must be signed in to change notification settings - Fork 205
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
Replace obsolete patches syntax #1117
Conversation
This was made obsolete in v1.0.9 https://github.com/kubernetes-sigs/kustomize/blob/v1.0.9/pkg/types/kustomization.go#L129 And stopped working in v3.0.3 kubernetes-sigs/kustomize#1373
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.
/lgtm
@deepy thanks a lot! The documentation still talks about |
The syntax for adding them through I'm unfortunately not familiar enough with kustomize to give a good answer other than: I think the syntax might have changed twice since then |
Hmm, looks like the future (v1) is Maybe we can keep |
If future is |
Found this from a link to a kustomize PR.
The |
@natasha41575 thanks a lot for chiming in!
This PR proposes a move from |
Some change is going to be needed, I initially created this PR because it wasn't working for me, but if I use |
@@ -1,6 +1,6 @@ | |||
bases: | |||
- ../../base/ | |||
patches: | |||
patchesStrategicMerge: |
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 left this one in as the file is already using patchesJson6902
(which is also being moved into the patches
field) to prevent confusion
I've updated the PR to now do essentially the opposite, this solution also works for me. With no changes I get |
Codecov Report
@@ Coverage Diff @@
## main #1117 +/- ##
=======================================
Coverage 53.01% 53.01%
=======================================
Files 40 40
Lines 4350 4350
=======================================
Hits 2306 2306
Misses 1917 1917
Partials 127 127 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
@deepy thanks for the patience! I think this is all good now, it fixes your errors in a (hopefully) future-proof manner.
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.
/lgtm
This was made obsolete in v1.0.9
https://github.com/kubernetes-sigs/kustomize/blob/v1.0.9/pkg/types/kustomization.go#L129
And stopped working in v3.0.3
kubernetes-sigs/kustomize#1373