mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: use the default namespace in case --namespace isn't set in kyverno create exception (#9022)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
This commit is contained in:
parent
9906505ee5
commit
a08cb71deb
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: kyverno.io/v2beta1
|
|||
kind: PolicyException
|
||||
metadata:
|
||||
name: {{ .Name }}
|
||||
namespace: {{ .Namespace }}
|
||||
namespace: {{ or .Namespace "default" }}
|
||||
spec:
|
||||
background: {{ .Background }}
|
||||
match:
|
||||
|
|
Loading…
Reference in a new issue