-
Notifications
You must be signed in to change notification settings - Fork 287
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
4 changed files
with
192 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
11 changes: 11 additions & 0 deletions
11
pkg/dependencies/testdata/cloudstack_config_multiple_profiles.ini
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,11 @@ | ||
[Global] | ||
verify-ssl = false | ||
api-key = test-key1 | ||
secret-key = test-secret1 | ||
api-url = http://127.16.0.1:8080/client/api | ||
|
||
[Instance2] | ||
verify-ssl = true | ||
api-key = test-key2 | ||
secret-key = test-secret2 | ||
api-url = http://127.16.0.2:8080/client/api |
139 changes: 139 additions & 0 deletions
139
pkg/providers/cloudstack/testdata/cluster_main_with_availability_zones.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,139 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: test | ||
namespace: test-namespace | ||
spec: | ||
clusterNetwork: | ||
cni: cilium | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
services: | ||
cidrBlocks: | ||
- 10.96.0.0/12 | ||
controlPlaneConfiguration: | ||
count: 3 | ||
endpoint: | ||
host: 1.2.3.4 | ||
machineGroupRef: | ||
kind: CloudStackMachineConfig | ||
name: test-cp | ||
datacenterRef: | ||
kind: CloudStackDatacenterConfig | ||
name: test | ||
externalEtcdConfiguration: | ||
count: 3 | ||
machineGroupRef: | ||
kind: CloudStackMachineConfig | ||
name: test-etcd | ||
kubernetesVersion: "1.21" | ||
workerNodeGroupConfigurations: | ||
- count: 3 | ||
machineGroupRef: | ||
kind: CloudStackMachineConfig | ||
name: test | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: CloudStackDatacenterConfig | ||
metadata: | ||
name: test | ||
namespace: test-namespace | ||
spec: | ||
account: "admin" | ||
domain: "domain1" | ||
zones: | ||
- name: "zone1" | ||
network: | ||
name: "net1" | ||
managementApiEndpoint: "http://127.16.0.1:8080/client/api" | ||
availabilityZones: | ||
- name: "zone2" | ||
account: "admin" | ||
domain: "domain2" | ||
managementApiEndpoint: "http://127.16.0.2:8080/client/api" | ||
zone: | ||
name: "zone2" | ||
network: | ||
name: "net2" | ||
|
||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: CloudStackMachineConfig | ||
metadata: | ||
name: test-cp | ||
namespace: test-namespace | ||
spec: | ||
computeOffering: | ||
name: "m4-large" | ||
users: | ||
- name: "mySshUsername" | ||
sshAuthorizedKeys: # The key below was manually generated and not used in any production systems | ||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1BK73XhIzjX+meUr7pIYh6RHbvI3tmHeQIXY5lv7aztN1UoX+bhPo3dwo2sfSQn5kuxgQdnxIZ/CTzy0p0GkEYVv3gwspCeurjmu0XmrdmaSGcGxCEWT/65NtvYrQtUE5ELxJ+N/aeZNlK2B7IWANnw/82913asXH4VksV1NYNduP0o1/G4XcwLLSyVFB078q/oEnmvdNIoS61j4/o36HVtENJgYr0idcBvwJdvcGxGnPaqOhx477t+kfJAa5n5dSA5wilIaoXH5i1Tf/HsTCM52L+iNCARvQzJYZhzbWI1MDQwzILtIBEQCJsl2XSqIupleY8CxqQ6jCXt2mhae+wPc3YmbO5rFvr2/EvC57kh3yDs1Nsuj8KOvD78KeeujbR8n8pScm3WDp62HFQ8lEKNdeRNj6kB8WnuaJvPnyZfvzOhwG65/9w13IBl7B1sWxbFnq2rMpm5uHVK7mAmjL0Tt8zoDhcE1YJEnp9xte3/pvmKPkST5Q/9ZtR9P5sI+02jY0fvPkPyC03j2gsPixG7rpOCwpOdbny4dcj0TDeeXJX8er+oVfJuLYz0pNWJcT2raDdFfcqvYA0B0IyNYlj5nWX4RuEcyT3qocLReWPnZojetvAG/H8XwOh7fEVGqHAKOVSnPXCSQJPl6s0H12jPJBDJMTydtYPEszl4/CeQ== testemail@test.com" | ||
template: | ||
name: "centos7-k8s-118" | ||
diskOffering: | ||
name: "Small" | ||
mountPath: "/data-small" | ||
device: "/dev/vdb" | ||
filesystem: "ext4" | ||
label: "data_disk" | ||
symlinks: | ||
/var/log/kubernetes: /data-small/var/log/kubernetes | ||
affinityGroupIds: | ||
- control-plane-anti-affinity | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: CloudStackMachineConfig | ||
metadata: | ||
name: test | ||
namespace: test-namespace | ||
spec: | ||
computeOffering: | ||
name: "m4-large" | ||
users: | ||
- name: "mySshUsername" | ||
sshAuthorizedKeys: # The key below was manually generated and not used in any production systems | ||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1BK73XhIzjX+meUr7pIYh6RHbvI3tmHeQIXY5lv7aztN1UoX+bhPo3dwo2sfSQn5kuxgQdnxIZ/CTzy0p0GkEYVv3gwspCeurjmu0XmrdmaSGcGxCEWT/65NtvYrQtUE5ELxJ+N/aeZNlK2B7IWANnw/82913asXH4VksV1NYNduP0o1/G4XcwLLSyVFB078q/oEnmvdNIoS61j4/o36HVtENJgYr0idcBvwJdvcGxGnPaqOhx477t+kfJAa5n5dSA5wilIaoXH5i1Tf/HsTCM52L+iNCARvQzJYZhzbWI1MDQwzILtIBEQCJsl2XSqIupleY8CxqQ6jCXt2mhae+wPc3YmbO5rFvr2/EvC57kh3yDs1Nsuj8KOvD78KeeujbR8n8pScm3WDp62HFQ8lEKNdeRNj6kB8WnuaJvPnyZfvzOhwG65/9w13IBl7B1sWxbFnq2rMpm5uHVK7mAmjL0Tt8zoDhcE1YJEnp9xte3/pvmKPkST5Q/9ZtR9P5sI+02jY0fvPkPyC03j2gsPixG7rpOCwpOdbny4dcj0TDeeXJX8er+oVfJuLYz0pNWJcT2raDdFfcqvYA0B0IyNYlj5nWX4RuEcyT3qocLReWPnZojetvAG/H8XwOh7fEVGqHAKOVSnPXCSQJPl6s0H12jPJBDJMTydtYPEszl4/CeQ== testemail@test.com" | ||
template: | ||
name: "centos7-k8s-118" | ||
diskOffering: | ||
name: "Small" | ||
mountPath: "/data-small" | ||
device: "/dev/vdb" | ||
filesystem: "ext4" | ||
label: "data_disk" | ||
symlinks: | ||
/var/log/pods: /data-small/var/log/pods | ||
/var/log/containers: /data-small/var/log/containers | ||
affinityGroupIds: | ||
- worker-affinity | ||
userCustomDetails: | ||
foo: bar | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: CloudStackMachineConfig | ||
metadata: | ||
name: test-etcd | ||
namespace: test-namespace | ||
spec: | ||
computeOffering: | ||
name: "m4-large" | ||
users: | ||
- name: "mySshUsername" | ||
sshAuthorizedKeys: # The key below was manually generated and not used in any production systems | ||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1BK73XhIzjX+meUr7pIYh6RHbvI3tmHeQIXY5lv7aztN1UoX+bhPo3dwo2sfSQn5kuxgQdnxIZ/CTzy0p0GkEYVv3gwspCeurjmu0XmrdmaSGcGxCEWT/65NtvYrQtUE5ELxJ+N/aeZNlK2B7IWANnw/82913asXH4VksV1NYNduP0o1/G4XcwLLSyVFB078q/oEnmvdNIoS61j4/o36HVtENJgYr0idcBvwJdvcGxGnPaqOhx477t+kfJAa5n5dSA5wilIaoXH5i1Tf/HsTCM52L+iNCARvQzJYZhzbWI1MDQwzILtIBEQCJsl2XSqIupleY8CxqQ6jCXt2mhae+wPc3YmbO5rFvr2/EvC57kh3yDs1Nsuj8KOvD78KeeujbR8n8pScm3WDp62HFQ8lEKNdeRNj6kB8WnuaJvPnyZfvzOhwG65/9w13IBl7B1sWxbFnq2rMpm5uHVK7mAmjL0Tt8zoDhcE1YJEnp9xte3/pvmKPkST5Q/9ZtR9P5sI+02jY0fvPkPyC03j2gsPixG7rpOCwpOdbny4dcj0TDeeXJX8er+oVfJuLYz0pNWJcT2raDdFfcqvYA0B0IyNYlj5nWX4RuEcyT3qocLReWPnZojetvAG/H8XwOh7fEVGqHAKOVSnPXCSQJPl6s0H12jPJBDJMTydtYPEszl4/CeQ== testemail@test.com" | ||
template: | ||
name: "centos7-k8s-118" | ||
diskOffering: | ||
name: "Small" | ||
mountPath: "/data-small" | ||
device: "/dev/vdb" | ||
filesystem: "ext4" | ||
label: "data_disk" | ||
symlinks: | ||
/var/lib/: /data-small/var/lib | ||
affinityGroupIds: | ||
- etcd-affinity | ||
|
||
--- |
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