github.com/operator-framework/operator-lifecycle-manager@v0.30.0/pkg/package-server/provider/testdata/manifests/prometheus/0.14.0/prometheusrule.crd.yaml (about) 1 apiVersion: apiextensions.k8s.io/v1beta1 2 kind: CustomResourceDefinition 3 metadata: 4 name: prometheusrules.monitoring.coreos.com 5 spec: 6 group: monitoring.coreos.com 7 names: 8 kind: PrometheusRule 9 plural: prometheusrules 10 scope: Namespaced 11 validation: 12 openAPIV3Schema: 13 properties: 14 spec: 15 description: PrometheusRuleSpec contains specification parameters for a 16 Rule. 17 properties: 18 groups: 19 description: Content of Prometheus rule file 20 items: 21 description: RuleGroup is a list of sequentially evaluated recording 22 and alerting rules. 23 properties: 24 interval: 25 type: string 26 name: 27 type: string 28 rules: 29 items: 30 description: Rule describes an alerting or recording rule. 31 properties: 32 alert: 33 type: string 34 annotations: 35 type: object 36 expr: 37 type: string 38 for: 39 type: string 40 labels: 41 type: object 42 record: 43 type: string 44 required: 45 - expr 46 type: array 47 required: 48 - name 49 - rules 50 type: array 51 version: v1