Automatically anchor resource selector patterns

This commit is contained in:
Richard Marshall
2019-07-29 17:57:33 -07:00
parent 46905588ac
commit 963913f9ef
3 changed files with 68 additions and 9 deletions

View File

@@ -283,7 +283,7 @@ patches:
group: apps
version: v1
kind: Deployment
name: deploy
name: deploy.*
labelSelector: "env=dev"
annotationSelector: "zone=west"
- patch: |-
@@ -295,6 +295,10 @@ patches:
labelSelector: "env=dev"
```
The `name` and `namespace` fields of the patch target selector are
automatically anchored regular expressions. This means that the value `myapp`
is equivalent to `^myapp$`.
### patchesStrategicMerge
Each entry in this list should be either a relative