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:
Michael Smith
2021-10-26 12:15:48 -07:00
parent 984a2dab3d
commit 572d5841c6

View File

@@ -22,17 +22,17 @@ a _target selector_:
> group: <optional group>
> version: <optional version>
> kind: <optional kind>
> name: <optional name>
> name: <optional name or regex pattern>
> namespace: <optional namespace>
> labelSelector: <optional label 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
> target:
> name: foo*
> name: foo.*
> ```
Select all resources of _kind_ `Deployment`: