-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add control plane failure domains feature for Nutanix provider (#8192)
* Add failure domains support for Nutanix Provider - change Nutanix Datacenter CRD - change templates - generate manifests - add unittest * Fix lint error * Regenerate deepcopy files * Fix PR comments - add validation - fix template - add unittest for validation * Add validations and unit tests * Allow updating failure domains for existing clusters
- Loading branch information
Showing
20 changed files
with
1,389 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
pkg/api/v1alpha1/testdata/nutanix/datacenterconfig-invalid-failuredomains.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: NutanixDatacenterConfig | ||
metadata: | ||
name: eksa-unit-test | ||
namespace: default | ||
spec: | ||
endpoint: "prism.nutanix.com" | ||
port: 9440 | ||
credentialRef: | ||
name: eksa-unit-test | ||
kind: Secret | ||
failureDomains: | ||
- name: "pe1" | ||
cluster: | ||
type: name | ||
name: "prism-cluster-1" | ||
subnets: | ||
- name: "prism-subnet-1" | ||
type: "name" | ||
- uuid: "" | ||
type: "uuid" | ||
- name: "pe2" | ||
cluster: | ||
type: "uuid" | ||
uuid: "468b7b36-d15b-406a-90f7-46d1560c4f4e" | ||
subnets: | ||
- name: "prism-subnet-1" | ||
type: "name" | ||
- uuid: "3e716c09-0613-46f3-b46a-beb89aa02295" | ||
type: "uuid" |
30 changes: 30 additions & 0 deletions
30
pkg/api/v1alpha1/testdata/nutanix/datacenterconfig-valid-failuredomains.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: NutanixDatacenterConfig | ||
metadata: | ||
name: eksa-unit-test | ||
namespace: default | ||
spec: | ||
endpoint: "prism.nutanix.com" | ||
port: 9440 | ||
credentialRef: | ||
name: eksa-unit-test | ||
kind: Secret | ||
failureDomains: | ||
- name: "pe1" | ||
cluster: | ||
type: name | ||
name: "prism-cluster-1" | ||
subnets: | ||
- name: "prism-subnet-1" | ||
type: "name" | ||
- uuid: "3e716c09-0613-46f3-b46a-beb89aa02295" | ||
type: "uuid" | ||
- name: "pe2" | ||
cluster: | ||
type: "uuid" | ||
uuid: "468b7b36-d15b-406a-90f7-46d1560c4f4e" | ||
subnets: | ||
- name: "prism-subnet-1" | ||
type: "name" | ||
- uuid: "3e716c09-0613-46f3-b46a-beb89aa02295" | ||
type: "uuid" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.