-
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.
Add Nutanix CCM ignore node IPs list (#9068)
* BUGFIX Add Add Nutanix CCM ignore node IPs list * Fix comments and linter errors - fix kube-vip validation - fix kube-vip add to ignore node list - add unit-test * Fix comments
- Loading branch information
Showing
70 changed files
with
1,233 additions
and
96 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
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
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
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
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
15 changes: 15 additions & 0 deletions
15
pkg/providers/nutanix/testdata/datacenterConfig_with_ccm_exclude_node_ips.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,15 @@ | ||
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" | ||
ccmExcludeNodeIPs: | ||
- 10.0.0.1 | ||
- 10.0.0.0/24 | ||
- 10.0.0.10-10.0.0.30 |
16 changes: 16 additions & 0 deletions
16
pkg/providers/nutanix/testdata/datacenterConfig_with_ccm_exclude_node_ips_invalid_cidr.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,16 @@ | ||
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" | ||
ccmExcludeNodeIPs: | ||
- 10.0.0.1 | ||
- 10.0.0.0/24 | ||
- 10.0.0.10-10.0.0.30 | ||
- 10.100.0.0//16 |
16 changes: 16 additions & 0 deletions
16
pkg/providers/nutanix/testdata/datacenterConfig_with_ccm_exclude_node_ips_invalid_ip.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,16 @@ | ||
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" | ||
ccmExcludeNodeIPs: | ||
- 10.0.0.1 | ||
- 10.0.0.0/24 | ||
- 10.0.0.10-10.0.0.30 | ||
- 244.244.01 |
16 changes: 16 additions & 0 deletions
16
...viders/nutanix/testdata/datacenterConfig_with_ccm_exclude_node_ips_invalid_ip_range1.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,16 @@ | ||
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" | ||
ccmExcludeNodeIPs: | ||
- 10.0.0.1 | ||
- 10.0.0.0/24 | ||
- 10.0.0.10-10.0.0.30 | ||
- 10.100.0.10-10.100.10.10-10.100.20.30 |
16 changes: 16 additions & 0 deletions
16
...viders/nutanix/testdata/datacenterConfig_with_ccm_exclude_node_ips_invalid_ip_range2.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,16 @@ | ||
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" | ||
ccmExcludeNodeIPs: | ||
- 10.0.0.1 | ||
- 10.0.0.0/24 | ||
- 10.0.0.10-10.0.0.30 | ||
- 192.179.1.1-10.1.1.1 |
17 changes: 17 additions & 0 deletions
17
...viders/nutanix/testdata/datacenterConfig_with_ccm_exclude_node_ips_invalid_ip_range3.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,17 @@ | ||
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" | ||
ccmExcludeNodeIPs: | ||
- 10.0.0.1 | ||
- 10.0.0.0/24 | ||
- 10.0.0.10-10.0.0.30 | ||
- 10.0.10.0-::1 | ||
|
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.