Skip to content

Commit 264fe43

Browse files
add test
1 parent e298861 commit 264fe43

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.e2e/chainsaw-tests.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,28 @@ spec:
7373
- my-virtual-namespace
7474
matchLabels:
7575
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

Comments
 (0)