-
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.
updating taint validation to management cluster only (#6294)
- Loading branch information
1 parent
39bfc02
commit b2bf264
Showing
6 changed files
with
252 additions
and
1 deletion.
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
94 changes: 94 additions & 0 deletions
94
pkg/api/v1alpha1/testdata/cluster_valid_taints_workload_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,94 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: eksa-unit-test | ||
spec: | ||
controlPlaneConfiguration: | ||
count: 3 | ||
endpoint: | ||
host: test-ip | ||
machineGroupRef: | ||
name: eksa-unit-test | ||
kind: VSphereMachineConfig | ||
kubernetesVersion: "1.19" | ||
managementCluster: | ||
name: mgmt | ||
workerNodeGroupConfigurations: | ||
- count: 3 | ||
machineGroupRef: | ||
name: eksa-unit-test-2 | ||
kind: VSphereMachineConfig | ||
name: "md-0" | ||
taints: | ||
- key: key1 | ||
value: val1 | ||
effect: NoSchedule | ||
- count: 3 | ||
machineGroupRef: | ||
name: eksa-unit-test-2 | ||
kind: VSphereMachineConfig | ||
name: "md-1" | ||
taints: | ||
- key: key1 | ||
value: val1 | ||
effect: NoExecute | ||
datacenterRef: | ||
kind: VSphereDatacenterConfig | ||
name: eksa-unit-test | ||
clusterNetwork: | ||
cni: "cilium" | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
services: | ||
cidrBlocks: | ||
- 10.96.0.0/12 | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: eksa-unit-test | ||
spec: | ||
diskGiB: 25 | ||
datastore: "myDatastore" | ||
folder: "myFolder" | ||
memoryMiB: 8192 | ||
numCPUs: 2 | ||
osFamily: "ubuntu" | ||
resourcePool: "myResourcePool" | ||
storagePolicyName: "myStoragePolicyName" | ||
template: "myTemplate" | ||
users: | ||
- name: "mySshUsername" | ||
sshAuthorizedKeys: | ||
- "mySshAuthorizedKey" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: eksa-unit-test-2 | ||
spec: | ||
diskGiB: 20 | ||
datastore: "myDatastore2" | ||
folder: "myFolder2" | ||
memoryMiB: 2048 | ||
numCPUs: 4 | ||
osFamily: "bottlerocket" | ||
resourcePool: "myResourcePool2" | ||
storagePolicyName: "myStoragePolicyName2" | ||
template: "myTemplate2" | ||
users: | ||
- name: "mySshUsername2" | ||
sshAuthorizedKeys: | ||
- "mySshAuthorizedKey2" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereDatacenterConfig | ||
metadata: | ||
name: eksa-unit-test | ||
spec: | ||
datacenter: "myDatacenter" | ||
network: "myNetwork" | ||
server: "myServer" | ||
thumbprint: "myTlsThumbprint" | ||
insecure: false |
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