add label selector in Resource Modifiers (#6704)

* add label selector in resource modifier

Signed-off-by: lou <alex1988@outlook.com>

* add ut

Signed-off-by: lou <alex1988@outlook.com>

* update after review

Signed-off-by: lou <alex1988@outlook.com>

* update after review

Signed-off-by: lou <alex1988@outlook.com>

---------

Signed-off-by: lou <alex1988@outlook.com>
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com>
This commit is contained in:
Guang Jiong Lou
2023-08-31 10:52:03 +05:30
committed by Anshul Ahuja
parent 53530130a5
commit 45165503ba
10 changed files with 204 additions and 71 deletions
@@ -36,7 +36,7 @@ var yamlData = `
version: v1
resourceModifierRules:
- conditions:
groupKind: deployments.apps
groupResource: deployments.apps
resourceNameRegex: "resource-modifiers-.*"
patches:
- operation: add