...
1apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this
2name: "[TechPreview] AlertingRule"
3crd: 0000_50_monitoring_01_alertingrules.crd.yaml
4tests:
5 onCreate:
6 - name: Should be able to create a minimal AlertingRule
7 initial: |
8 apiVersion: monitoring.openshift.io/v1alpha1
9 kind: AlertingRule
10 spec:
11 groups:
12 - name: foo
13 rules:
14 - alert: foo
15 expr: foo
16 expected: |
17 apiVersion: monitoring.openshift.io/v1alpha1
18 kind: AlertingRule
19 spec:
20 groups:
21 - name: foo
22 rules:
23 - alert: foo
24 expr: foo
View as plain text