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> > 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`: