Skip to content

Commit 53e98d2

Browse files
authored
Merge pull request #3157 from fiunchinho/machinepool-failuredomain
✨ Add MachinePool support for FailureDomains
2 parents 3de5009 + 6e6ba84 commit 53e98d2

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

config/crd/bases/exp.cluster.x-k8s.io_machinepools.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ spec:
5555
to.
5656
minLength: 1
5757
type: string
58+
failureDomains:
59+
description: FailureDomains is the list of failure domains this MachinePool
60+
should be attached to.
61+
items:
62+
type: string
63+
type: array
5864
minReadySeconds:
5965
description: Minimum number of seconds for which a newly created machine
6066
instances should be ready. Defaults to 0 (machine instance will

docs/proposals/20190919-machinepool-api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ type MachinePoolSpec struct
166166
- **ClusterName [required]**
167167
- Type: `string`
168168
- Description: Name of the Cluster this machine pool belongs to.
169+
- **FailureDomains [optional]**
170+
- Type: `[]string`
171+
- Description: FailureDomains is the list of failure domains this MachinePool should be attached to.
169172
- **Replicas [optional]**
170173
- Type: `*int32`
171174
- Description: Number of desired machine instances. Defaults to 1.
@@ -415,4 +418,3 @@ inconsistent experience across providers.
415418
10/23/2019: First round of feedback from community
416419
10/23/2019: Present proposal at a community meeting
417420
10/31/2019: Open proposal PR
418-

exp/api/v1alpha3/machinepool_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ type MachinePoolSpec struct {
5959
// This field must match the provider IDs as seen on the node objects corresponding to a machine pool's machine instances.
6060
// +optional
6161
ProviderIDList []string `json:"providerIDList,omitempty"`
62+
63+
// FailureDomains is the list of failure domains this MachinePool should be attached to.
64+
FailureDomains []string `json:"failureDomains,omitempty"`
6265
}
6366

6467
// ANCHOR_END: MachinePoolSpec

exp/api/v1alpha3/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)