-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
401 additions
and
9 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
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" |
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
27 changes: 27 additions & 0 deletions
27
pkg/providers/nutanix/testdata/datacenterConfig_with_failure_domains.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,27 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: NutanixDatacenterConfig | ||
metadata: | ||
name: eksa-unit-test | ||
namespace: default | ||
spec: | ||
endpoint: "prism.nutanix.com" | ||
port: 9440 | ||
credentialRef: | ||
kind: Secret | ||
name: "nutanix-credentials" | ||
insecure: true | ||
failureDomains: | ||
- name: "pe1" | ||
cluster: | ||
type: name | ||
name: "prism-cluster" | ||
subnets: | ||
- type: uuid | ||
uuid: "2d166190-7759-4dc6-b835-923262d6b497" | ||
- name: "pe2" | ||
cluster: | ||
type: uuid | ||
uuid: "4d69ca7d-022f-49d1-a454-74535993bda4" | ||
subnets: | ||
- type: name | ||
name: "prism-subnet" |
27 changes: 27 additions & 0 deletions
27
pkg/providers/nutanix/testdata/datacenterConfig_with_failure_domains_invalid_cluster.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,27 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: NutanixDatacenterConfig | ||
metadata: | ||
name: eksa-unit-test | ||
namespace: default | ||
spec: | ||
endpoint: "prism.nutanix.com" | ||
port: 9440 | ||
credentialRef: | ||
kind: Secret | ||
name: "nutanix-credentials" | ||
insecure: true | ||
failureDomains: | ||
- name: "pe1" | ||
cluster: | ||
type: name | ||
name: "prism-cluster" | ||
subnets: | ||
- type: uuid | ||
uuid: "2d166190-7759-4dc6-b835-923262d6b497" | ||
- name: "pe2" | ||
cluster: | ||
type: uuid | ||
uuid: "4d69ca7d-022f-49d1-a454-00005993bda4" | ||
subnets: | ||
- type: name | ||
name: "prism-subnet" |
27 changes: 27 additions & 0 deletions
27
pkg/providers/nutanix/testdata/datacenterConfig_with_failure_domains_invalid_name.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,27 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: NutanixDatacenterConfig | ||
metadata: | ||
name: eksa-unit-test | ||
namespace: default | ||
spec: | ||
endpoint: "prism.nutanix.com" | ||
port: 9440 | ||
credentialRef: | ||
kind: Secret | ||
name: "nutanix-credentials" | ||
insecure: true | ||
failureDomains: | ||
- name: "FIZZBUZZ!!!!" | ||
cluster: | ||
type: name | ||
name: "prism-cluster" | ||
subnets: | ||
- type: uuid | ||
uuid: "2d166190-7759-4dc6-b835-923262d6b497" | ||
- name: "pe2" | ||
cluster: | ||
type: uuid | ||
uuid: "4d69ca7d-022f-49d1-a454-74535993bda4" | ||
subnets: | ||
- type: name | ||
name: "prism-subnet" |
27 changes: 27 additions & 0 deletions
27
pkg/providers/nutanix/testdata/datacenterConfig_with_failure_domains_invalid_subnet.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,27 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: NutanixDatacenterConfig | ||
metadata: | ||
name: eksa-unit-test | ||
namespace: default | ||
spec: | ||
endpoint: "prism.nutanix.com" | ||
port: 9440 | ||
credentialRef: | ||
kind: Secret | ||
name: "nutanix-credentials" | ||
insecure: true | ||
failureDomains: | ||
- name: "pe1" | ||
cluster: | ||
type: name | ||
name: "prism-cluster" | ||
subnets: | ||
- type: uuid | ||
uuid: "2d166190-7759-4dc6-b835-000062d6b497" | ||
- name: "pe2" | ||
cluster: | ||
type: uuid | ||
uuid: "4d69ca7d-022f-49d1-a454-74535993bda4" | ||
subnets: | ||
- type: name | ||
name: "prism-subnet" |
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.