Replies: 1 comment 1 reply
-
This is simply not possible with What is commonly done instead is to use the - op: test
path: /spec/template/spec/containers/0/env/1/name
value: TRACING_COLLECTOR_HOST
- op: replace
path: /spec/template/spec/containers/0/env/1/value
value: newvalue You should probably also add a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given this YAML file, what would be the proper syntax to patch the value of the
env
element that hasTRACING_COLLECTOR_HOST
asname
?This works, but hardcodes "use the second element in the list" (
.../env/1/...
):I find no syntax that kustomize accepts, that lets me define this. Is this possible?
The RFCs for JSON patches contain only very basic paths, unfortunately.
yq
accepts something like this:Here are some of the things I tried with kustomize:
Beta Was this translation helpful? Give feedback.
All reactions