1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 18:38:40 +00:00

fix: use the default namespace in case --namespace isn't set in kyverno create exception (#9014)

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
This commit is contained in:
Mariam Fahmy 2023-11-24 13:43:42 +02:00 committed by GitHub
parent d6933fff4f
commit 86dff69edc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: test
namespace:
namespace: default
spec:
background: true
match:
@ -76,7 +76,7 @@ apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: test
namespace:
namespace: default
spec:
background: true
match:

View file

@ -2,7 +2,7 @@ apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: {{ .Name }}
namespace: {{ .Namespace }}
namespace: {{ or .Namespace "default" }}
spec:
background: {{ .Background }}
match: