apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this name: "[TechPreview] AlertRelabelConfig" crd: 0000_50_monitoring_02_alertrelabelconfigs.crd.yaml tests: onCreate: - name: Should be able to create a minimal AlertRelabelConfig initial: | apiVersion: monitoring.openshift.io/v1alpha1 kind: AlertRelabelConfig spec: configs: # At least one item is required but all fields are optional, # Use action as it is defaulted when not set. - action: Replace expected: | apiVersion: monitoring.openshift.io/v1alpha1 kind: AlertRelabelConfig spec: configs: - action: Replace