-
Notifications
You must be signed in to change notification settings - Fork 225
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
docs: replacements to all array elements #240
docs: replacements to all array elements #240
Conversation
/assign @natasha41575 |
Ah sorry for the late review; taking a look now! |
@@ -198,10 +198,14 @@ Strings are used for mapping nodes. For sequence nodes, we support two options: | |||
|
|||
2. Index by key-value pair: `spec.template.spec.containers.[name=nginx].image` | |||
|
|||
And, Wildcard( `*` ) is replacing every element. |
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.
And, Wildcard( `*` ) is replacing every element. | |
3. Index with a wildcard match: `spec.template.spec.containers.*.env.[name=TARGET_ENV].value`. This will target every element in the list. |
@@ -198,10 +198,14 @@ Strings are used for mapping nodes. For sequence nodes, we support two options: | |||
|
|||
2. Index by key-value pair: `spec.template.spec.containers.[name=nginx].image` |
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.
Please add a sentence here, e.g. If the key-value pair matches multiple elements in the sequence node, all matching elements will be targetted.
@@ -198,10 +198,14 @@ Strings are used for mapping nodes. For sequence nodes, we support two options: | |||
|
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.
Above it says "For sequence nodes, we support two options". This should say three, not two.
@natasha41575 Thanks for your review. |
/lgtm |
/label tide/merge-method-squash |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: koba1t, natasha41575 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 |
/hold |
/hold cancel |
/retest |
/unhold |
/retest |
/test all |
@natasha41575: No presubmit jobs available for kubernetes-sigs/cli-experimental@master In response to this:
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. |
Add docs for replacements to all array elements. (PR merged: kubernetes-sigs/kustomize#4424)
Fix: kubernetes-sigs/kustomize#4053 (comment)