-
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.
Fix NPE in vSphere etcd machine datastore usage calculation (#8245)
- Loading branch information
1 parent
28d6212
commit 9919e6c
Showing
3 changed files
with
251 additions
and
45 deletions.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
pkg/providers/vsphere/testdata/cluster_main_stacked_etcd.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,108 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: test | ||
namespace: test-namespace | ||
spec: | ||
controlPlaneConfiguration: | ||
count: 3 | ||
endpoint: | ||
host: 1.2.3.4 | ||
machineGroupRef: | ||
name: test-cp | ||
kind: VSphereMachineConfig | ||
kubernetesVersion: "1.19" | ||
workerNodeGroupConfigurations: | ||
- count: 3 | ||
machineGroupRef: | ||
name: test-wn | ||
kind: VSphereMachineConfig | ||
name: md-0 | ||
datacenterRef: | ||
kind: VSphereDatacenterConfig | ||
name: test | ||
clusterNetwork: | ||
cni: "cilium" | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
services: | ||
cidrBlocks: | ||
- 10.96.0.0/12 | ||
node: | ||
cidrMaskSize: 8 | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: test-cp | ||
namespace: test-namespace | ||
spec: | ||
diskGiB: 25 | ||
cloneMode: linkedClone | ||
datastore: "/SDDC-Datacenter/datastore/WorkloadDatastore" | ||
folder: "/SDDC-Datacenter/vm" | ||
memoryMiB: 8192 | ||
numCPUs: 2 | ||
osFamily: ubuntu | ||
resourcePool: "*/Resources" | ||
storagePolicyName: "vSAN Default Storage Policy" | ||
template: "/SDDC-Datacenter/vm/Templates/ubuntu-1804-kube-v1.19.6" | ||
users: | ||
- name: capv | ||
sshAuthorizedKeys: | ||
- "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" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: test-wn | ||
namespace: test-namespace | ||
spec: | ||
diskGiB: 25 | ||
cloneMode: linkedClone | ||
datastore: "/SDDC-Datacenter/datastore/WorkloadDatastore" | ||
folder: "/SDDC-Datacenter/vm" | ||
memoryMiB: 4096 | ||
numCPUs: 3 | ||
osFamily: ubuntu | ||
resourcePool: "*/Resources" | ||
storagePolicyName: "vSAN Default Storage Policy" | ||
template: "/SDDC-Datacenter/vm/Templates/ubuntu-1804-kube-v1.19.6" | ||
users: | ||
- name: capv | ||
sshAuthorizedKeys: | ||
- "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" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: test-etcd | ||
namespace: test-namespace | ||
spec: | ||
diskGiB: 25 | ||
cloneMode: linkedClone | ||
datastore: "/SDDC-Datacenter/datastore/WorkloadDatastore" | ||
folder: "/SDDC-Datacenter/vm" | ||
memoryMiB: 4096 | ||
numCPUs: 3 | ||
osFamily: ubuntu | ||
resourcePool: "*/Resources" | ||
storagePolicyName: "vSAN Default Storage Policy" | ||
template: "/SDDC-Datacenter/vm/Templates/ubuntu-1804-kube-v1.19.6" | ||
users: | ||
- name: capv | ||
sshAuthorizedKeys: | ||
- "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" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereDatacenterConfig | ||
metadata: | ||
name: test | ||
namespace: test-namespace | ||
spec: | ||
datacenter: "SDDC-Datacenter" | ||
network: "/SDDC-Datacenter/network/sddc-cgw-network-1" | ||
server: "vsphere_server" | ||
thumbprint: "ABCDEFG" | ||
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
Oops, something went wrong.