Skip to content

Commit 31b8129

Browse files
authored
Merge pull request #2321 from chrischdi/pr-godoc-failuredomainselector-improve
🌱 Improve godoc for VSphereCluster.spec.failureDomainSelector
2 parents fb0ccb5 + efb9dd9 commit 31b8129

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

apis/v1beta1/vspherecluster_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ type VSphereClusterSpec struct {
6161

6262
// FailureDomainSelector is the label selector to use for failure domain selection
6363
// for the control plane nodes of the cluster.
64-
// An empty value for the selector includes all the related failure domains.
64+
// If not set (`nil`), selecting failure domains will be disabled.
65+
// An empty value (`{}`) selects all existing failure domains.
66+
// A valid selector will select all failure domains which match the selector.
6567
// +optional
6668
FailureDomainSelector *metav1.LabelSelector `json:"failureDomainSelector,omitempty"`
6769
}

config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,9 @@ spec:
651651
failureDomainSelector:
652652
description: FailureDomainSelector is the label selector to use for
653653
failure domain selection for the control plane nodes of the cluster.
654-
An empty value for the selector includes all the related failure
655-
domains.
654+
If not set (`nil`), selecting failure domains will be disabled.
655+
An empty value (`{}`) selects all existing failure domains. A valid
656+
selector will select all failure domains which match the selector.
656657
properties:
657658
matchExpressions:
658659
description: matchExpressions is a list of label selector requirements.

config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclustertemplates.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,10 @@ spec:
171171
failureDomainSelector:
172172
description: FailureDomainSelector is the label selector to
173173
use for failure domain selection for the control plane nodes
174-
of the cluster. An empty value for the selector includes
175-
all the related failure domains.
174+
of the cluster. If not set (`nil`), selecting failure domains
175+
will be disabled. An empty value (`{}`) selects all existing
176+
failure domains. A valid selector will select all failure
177+
domains which match the selector.
176178
properties:
177179
matchExpressions:
178180
description: matchExpressions is a list of label selector

0 commit comments

Comments
 (0)