Skip to content

Commit

Permalink
change placementReference to placementName
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvindthiru committed Oct 22, 2024
1 parent 474ec1a commit d24c632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions apis/placement/v1alpha1/eviction_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d24c632

Please sign in to comment.