mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 19:35:06 +00:00
add annotation to ns (#621)
This commit is contained in:
parent
dabe592d46
commit
af824f28b0
1 changed files with 10 additions and 0 deletions
|
@ -8,6 +8,16 @@ metadata:
|
|||
spec:
|
||||
background: false
|
||||
rules:
|
||||
- name: add-sa-annotation
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
- Namespace
|
||||
mutate:
|
||||
overlay:
|
||||
metadata:
|
||||
annotations:
|
||||
nirmata.io/ns-creator: "{{serviceAccountName}}"
|
||||
- name: generate-owner-role
|
||||
match:
|
||||
resources:
|
||||
|
|
Loading…
Add table
Reference in a new issue