File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
charts/cluster-api-runtime-extensions-nutanix/addons/registry/cncf-distribution Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ tolerations:
3131 effect : " NoSchedule"
3232
3333podLabels :
34- caren.nutanix.com/cluster-uuid : {{ .ClusterUUID }} # ensure the labels match with pod AntiAffinity.
34+ cncf-distribution-registry : " true " # ensure the labels match with pod AntiAffinity.
3535
3636affinity :
3737 nodeAffinity :
@@ -46,5 +46,5 @@ affinity:
4646 podAffinityTerm :
4747 labelSelector :
4848 matchLabels :
49- caren.nutanix.com/cluster-uuid : {{ .ClusterUUID }}
49+ cncf-distribution-registry : " true "
5050 topologyKey : kubernetes.io/hostname
Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ func EnsureAntiAffnityForRegistryAddon(
143143 Expect (podAffinityTerm .LabelSelector ).ToNot (BeNil ())
144144 affinityLabels := podAffinityTerm .LabelSelector .MatchLabels
145145 Expect (
146- affinityLabels [v1alpha1 . ClusterUUIDAnnotationKey ],
147- ).To (Equal (input . WorkloadCluster . Annotations [ v1alpha1 . ClusterUUIDAnnotationKey ]))
146+ affinityLabels ["cncf-distribution-registry" ],
147+ ).To (Equal ("true" )) // Ensure the label matches the pod AntiAffinity.
148148
149149 // test node affinity
150150 nodeAffinity := sts .Spec .Template .Spec .Affinity .NodeAffinity
You can’t perform that action at this time.
0 commit comments