mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 00:16:54 +00:00
docs: Update example for patching multiple objects
Updates the example for patching multiple objects to match the implementation in #1355, which supports name as a regular expression (not wildcard pattern).
This commit is contained in:
@@ -22,17 +22,17 @@ a _target selector_:
|
|||||||
> group: <optional group>
|
> group: <optional group>
|
||||||
> version: <optional version>
|
> version: <optional version>
|
||||||
> kind: <optional kind>
|
> kind: <optional kind>
|
||||||
> name: <optional name>
|
> name: <optional name or regex pattern>
|
||||||
> namespace: <optional namespace>
|
> namespace: <optional namespace>
|
||||||
> labelSelector: <optional label selector>
|
> labelSelector: <optional label selector>
|
||||||
> annotationSelector: <optional annotation selector>
|
> annotationSelector: <optional annotation selector>
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
E.g. select resources with _name_ matching `foo*`:
|
E.g. select resources with _name_ matching the regular expression `foo.*`:
|
||||||
|
|
||||||
> ```yaml
|
> ```yaml
|
||||||
> target:
|
> target:
|
||||||
> name: foo*
|
> name: foo.*
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
Select all resources of _kind_ `Deployment`:
|
Select all resources of _kind_ `Deployment`:
|
||||||
|
|||||||
Reference in New Issue
Block a user