diff --git a/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_clusters.yaml b/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_clusters.yaml index 9a1d152f..bca44290 100644 --- a/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_clusters.yaml +++ b/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_clusters.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.4 + controller-gen.kubebuilder.io/version: v0.16.5 name: clusters.extensions.gardener.cloud spec: group: extensions.gardener.cloud diff --git a/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_extensions.yaml b/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_extensions.yaml index 85c61c56..aa194a66 100644 --- a/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_extensions.yaml +++ b/test/integration/controller/lifecycle/resources/crd-extensions.gardener.cloud_extensions.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.4 + controller-gen.kubebuilder.io/version: v0.16.5 name: extensions.extensions.gardener.cloud spec: group: extensions.gardener.cloud diff --git a/test/integration/controller/lifecycle/resources/crd-monitoring.coreos.com_prometheusrules.yaml b/test/integration/controller/lifecycle/resources/crd-monitoring.coreos.com_prometheusrules.yaml index 2dcde1d4..0998ac60 100644 --- a/test/integration/controller/lifecycle/resources/crd-monitoring.coreos.com_prometheusrules.yaml +++ b/test/integration/controller/lifecycle/resources/crd-monitoring.coreos.com_prometheusrules.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.4 + controller-gen.kubebuilder.io/version: v0.16.5 name: prometheusrules.monitoring.coreos.com spec: group: monitoring.coreos.com @@ -21,8 +21,10 @@ spec: - name: v1 schema: openAPIV3Schema: - description: PrometheusRule defines recording and alerting rules for a Prometheus - instance + description: |- + The `PrometheusRule` custom resource definition (CRD) defines [alerting](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) and [recording](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) rules to be evaluated by `Prometheus` or `ThanosRuler` objects. + + `Prometheus` and `ThanosRuler` objects select `PrometheusRule` objects using label and namespace selectors. properties: apiVersion: description: |- @@ -72,6 +74,14 @@ spec: More info: https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md#partial-response pattern: ^(?i)(abort|warn)?$ type: string + query_offset: + description: |- + Defines the offset the rule evaluation timestamp of this particular group by the specified duration into the past. + + It requires Prometheus >= v2.53.0. + It is not supported for ThanosRuler. + pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$ + type: string rules: description: List of alerting and recording rules. items: diff --git a/test/integration/controller/lifecycle/resources/crd-resources.gardener.cloud_managedresources.yaml b/test/integration/controller/lifecycle/resources/crd-resources.gardener.cloud_managedresources.yaml index 2d903ce8..95de5393 100644 --- a/test/integration/controller/lifecycle/resources/crd-resources.gardener.cloud_managedresources.yaml +++ b/test/integration/controller/lifecycle/resources/crd-resources.gardener.cloud_managedresources.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.16.4 + controller-gen.kubebuilder.io/version: v0.16.5 name: managedresources.resources.gardener.cloud spec: group: resources.gardener.cloud