apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this name: "[TechPreview] AlertingRule" crd: 0000_50_monitoring_01_alertingrules.crd.yaml tests: onCreate: - name: Should be able to create a minimal AlertingRule initial: | apiVersion: monitoring.openshift.io/v1alpha1 kind: AlertingRule spec: groups: - name: foo rules: - alert: foo expr: foo expected: | apiVersion: monitoring.openshift.io/v1alpha1 kind: AlertingRule spec: groups: - name: foo rules: - alert: foo expr: foo