...
1apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this
2name: "[TechPreview] AlertRelabelConfig"
3crd: 0000_50_monitoring_02_alertrelabelconfigs.crd.yaml
4tests:
5 onCreate:
6 - name: Should be able to create a minimal AlertRelabelConfig
7 initial: |
8 apiVersion: monitoring.openshift.io/v1alpha1
9 kind: AlertRelabelConfig
10 spec:
11 configs:
12 # At least one item is required but all fields are optional,
13 # Use action as it is defaulted when not set.
14 - action: Replace
15 expected: |
16 apiVersion: monitoring.openshift.io/v1alpha1
17 kind: AlertRelabelConfig
18 spec:
19 configs:
20 - action: Replace
View as plain text