We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e298861 commit 264fe43Copy full SHA for 264fe43
.e2e/chainsaw-tests.yaml
@@ -73,3 +73,28 @@ spec:
73
- my-virtual-namespace
74
matchLabels:
75
vcluster.loft.sh/label-vcluster-x-a172cedcae: example-app
76
+---
77
+apiVersion: chainsaw.kyverno.io/v1alpha1
78
+kind: Test
79
+metadata:
80
+ name: pm-without-ns-selector
81
+spec:
82
+ steps:
83
+ - try:
84
+ - assert:
85
+ resource:
86
+ apiVersion: monitoring.coreos.com/v1
87
+ kind: PodMonitor
88
+ metadata:
89
+ name: pm-without-ns-selector-x-default-x-vcluster
90
+ namespace: default
91
+ spec:
92
+ namespaceSelector: {}
93
+ selector:
94
+ matchExpressions:
95
+ - key: vcluster.loft.sh/namespace
96
+ operator: In
97
+ values:
98
+ - default
99
+ matchLabels:
100
+ vcluster.loft.sh/label-vcluster-x-a172cedcae: example-app
0 commit comments