Skip to content

Commit

Permalink
Remove XValidation rule as requires K8S >= 1.25 (#1339) (#1347)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Boulineau <[email protected]>
  • Loading branch information
levan-m and vboulineau authored Aug 9, 2024
1 parent e339500 commit 1640ba7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion apis/datadoghq/v1alpha1/datadogpodautoscaler_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions config/crd/bases/v1/datadoghq.com_datadogpodautoscalers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1640ba7

Please sign in to comment.