Skip to content

Commit 2cd400e

Browse files
authored
NCN-108153: fixing the mis-tagged controlPlaneFailureDomains field in NutanixCluster (#538)
1 parent 556cf20 commit 2cd400e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

api/v1beta1/nutanixcluster_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ type NutanixClusterSpec struct {
7171

7272
// controlPlaneFailureDomains configures references to the NutanixFailureDomain objects
7373
// that the cluster uses to deploy its control-plane machines.
74-
// +listType=set
74+
// +listType=map
75+
// +listMapKey=name
7576
// +optional
7677
ControlPlaneFailureDomains []corev1.LocalObjectReference `json:"controlPlaneFailureDomains,omitempty"`
7778
}

config/crd/bases/infrastructure.cluster.x-k8s.io_nutanixclusters.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ spec:
9595
type: object
9696
x-kubernetes-map-type: atomic
9797
type: array
98-
x-kubernetes-list-type: set
98+
x-kubernetes-list-map-keys:
99+
- name
100+
x-kubernetes-list-type: map
99101
failureDomains:
100102
description: |-
101103
failureDomains configures failure domains information for the Nutanix platform.

config/crd/bases/infrastructure.cluster.x-k8s.io_nutanixclustertemplates.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ spec:
8888
type: object
8989
x-kubernetes-map-type: atomic
9090
type: array
91-
x-kubernetes-list-type: set
91+
x-kubernetes-list-map-keys:
92+
- name
93+
x-kubernetes-list-type: map
9294
failureDomains:
9395
description: |-
9496
failureDomains configures failure domains information for the Nutanix platform.

0 commit comments

Comments
 (0)