1
0
Fork 0
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:
Shivkumar Dudhani 2020-01-13 17:43:13 -08:00 committed by GitHub
parent dabe592d46
commit af824f28b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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