From d24c6322e9ae3602487d4a856d898cbb3865229c Mon Sep 17 00:00:00 2001 From: Arvind Thirumurugan Date: Mon, 21 Oct 2024 21:57:37 -0700 Subject: [PATCH] change placementReference to placementName --- apis/placement/v1alpha1/eviction_types.go | 6 +++--- ...rnetes-fleet.io_clusterresourceplacementevictions.yaml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apis/placement/v1alpha1/eviction_types.go b/apis/placement/v1alpha1/eviction_types.go index 4122a2b08..d91769d55 100644 --- a/apis/placement/v1alpha1/eviction_types.go +++ b/apis/placement/v1alpha1/eviction_types.go @@ -56,12 +56,12 @@ type ClusterResourcePlacementEviction struct { // PlacementEvictionSpec is the desired state of the parent PlacementEviction. type PlacementEvictionSpec struct { - // PlacementReference is the name of the Placement object which + // PlacementName is the name of the Placement object which // the Eviction object targets. // +kubebuilder:validation:Required - // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="The PlacementReference field is immutable" + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="The PlacementName field is immutable" // +kubebuilder:validation:MaxLength=255 - PlacementReference string `json:"placementReference"` + PlacementName string `json:"placementName"` // ClusterName is the name of the cluster that the Eviction object targets. // +kubebuilder:validation:Required diff --git a/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml b/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml index d5ee4c9e9..96044b4f4 100644 --- a/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml +++ b/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml @@ -85,18 +85,18 @@ spec: x-kubernetes-validations: - message: The ClusterName field is immutable rule: self == oldSelf - placementReference: + placementName: description: |- - PlacementReference is the name of the Placement object which + PlacementName is the name of the Placement object which the Eviction object targets. maxLength: 255 type: string x-kubernetes-validations: - - message: The PlacementReference field is immutable + - message: The PlacementName field is immutable rule: self == oldSelf required: - clusterName - - placementReference + - placementName type: object status: description: Status is the observed state of the ClusterResourcePlacementEviction.