From 8f4fa4cae99771cb35c8d31279385268ca21e9c3 Mon Sep 17 00:00:00 2001 From: Vincent Boulineau <58430298+vboulineau@users.noreply.github.com> Date: Fri, 2 Aug 2024 00:42:27 +0200 Subject: [PATCH] Remove XValidation rule as requires K8S >= 1.25 (#1339) --- apis/datadoghq/v1alpha1/datadogpodautoscaler_types.go | 1 - config/crd/bases/v1/datadoghq.com_datadogpodautoscalers.yaml | 3 --- 2 files changed, 4 deletions(-) diff --git a/apis/datadoghq/v1alpha1/datadogpodautoscaler_types.go b/apis/datadoghq/v1alpha1/datadogpodautoscaler_types.go index 9a0dc9171..c093bc997 100644 --- a/apis/datadoghq/v1alpha1/datadogpodautoscaler_types.go +++ b/apis/datadoghq/v1alpha1/datadogpodautoscaler_types.go @@ -78,7 +78,6 @@ const ( // DatadogPodAutoscalerSpec defines the desired state of DatadogPodAutoscaler type DatadogPodAutoscalerSpec struct { // TargetRef is the reference to the resource to scale. - // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Modifying the targetRef is not allowed. Please delete and re-create the DatadogPodAutoscaler object." TargetRef autoscalingv2.CrossVersionObjectReference `json:"targetRef"` // Owner defines the source of truth for this object (local or remote) diff --git a/config/crd/bases/v1/datadoghq.com_datadogpodautoscalers.yaml b/config/crd/bases/v1/datadoghq.com_datadogpodautoscalers.yaml index 1007b3abc..fc1a26779 100644 --- a/config/crd/bases/v1/datadoghq.com_datadogpodautoscalers.yaml +++ b/config/crd/bases/v1/datadoghq.com_datadogpodautoscalers.yaml @@ -324,9 +324,6 @@ spec: - kind - name type: object - x-kubernetes-validations: - - message: Modifying the targetRef is not allowed. Please delete and re-create the DatadogPodAutoscaler object. - rule: self == oldSelf targets: description: |- Targets are objectives to reach and maintain for the target resource.