Fix: require cluster name can not be repeated (#5795)
Signed-off-by: wenhaozhou <wenhaozhou@yunify.com> Co-authored-by: Wenhao Zhou <34303854+zhou1203@users.noreply.github.com>
This commit is contained in:
@@ -118,6 +118,9 @@ spec:
|
||||
- name
|
||||
type: object
|
||||
type: array
|
||||
x-kubernetes-list-map-keys:
|
||||
- name
|
||||
x-kubernetes-list-type: map
|
||||
type: object
|
||||
template:
|
||||
properties:
|
||||
|
||||
@@ -29,6 +29,8 @@ type GenericClusterReference struct {
|
||||
}
|
||||
|
||||
type GenericPlacementFields struct {
|
||||
// +listType=map
|
||||
// +listMapKey=name
|
||||
Clusters []GenericClusterReference `json:"clusters,omitempty"`
|
||||
ClusterSelector *metav1.LabelSelector `json:"clusterSelector,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user