mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue (batch tested with PRs 38796, 40823, 40756, 41083, 41105) e2e tests for vSphere cloud provider **What this PR does / why we need it**: This PR contains changes for existing e2e volume provisioning test cases for running on vsphere cloud provider. **Following is the summary of changes made in existing e2e test cases** **Added test/e2e/persistent_volumes-vsphere.go** - This test verifies deleting a PVC before the pod does not cause pod deletion to fail on PD detach and deleting the PV before the pod does not cause pod deletion to fail on PD detach. **test/e2e/volume_provisioning.go** - This test creates a StorageClass and claim with dynamic provisioning and alpha dynamic provisioning annotations and verifies that required volumes are getting created. Test also verifies that created volume is readable and retaining data. - Added vsphere as supported cloud provider. Also set pluginName to "kubernetes.io/vsphere-volume" for vsphere cloud provider. **test/e2e/volumes.go** - Added test spec for vsphere - This test creates requested volume, mount it on the pod, write some random content at /opt/0/index.html and verifies file contents are perfect to make sure we don't see the content from previous test runs. - This test also passes "1234" as fsGroup to mount volume and verifies fsGroup is set correctly. **added test/e2e/vsphere_utils.go** - Added function verifyVSphereDiskAttached - Verify the persistent disk attached to the node. - Added function waitForVSphereDiskToDetach - Wait until vsphere vmdk is deteched from the given node or time out after 5 minutes - Added getVSpherePersistentVolumeSpec - create vsphere volume spec with given VMDK volume path, Reclaim Policy and labels - Added getVSpherePersistentVolumeClaimSpec - get vsphere persistent volume spec with given selector labels - createVSphereVolume - function to create vmdk volume **Following is the summary of new e2e tests added with this PR** **test/e2e/vsphere_volume_placement.go** - contains volume placement tests using node label selector - Test Back-to-back pod creation/deletion with the same volume source on the same worker node - Test Back-to-back pod creation/deletion with the same volume source attach/detach to different worker nodes **test/e2e/pv_reclaimpolicy.go** - contains tests for PV/PVC - Reclaiming Policy - Test verifies persistent volume should be deleted when reclaimPolicy on the PV is set to delete and associated claim is deleted - Test also verified that persistent volume should be retained when reclaimPolicy on the PV is set to retain and associated claim is deleted **test/e2e/pvc_label_selector.go** - This is function test for Selector-Label Volume Binding Feature. - Verify volume with the matching label is bounded with the PVC. Other changes Updated pkg/cloudprovider/providers/vsphere/BUILD and test/e2e/BUILD **Which issue this PR fixes** * fixes # 41087 **Special notes for your reviewer**: Updated tests were executed on kubernetes v1.4.8 release on vsphere. Test steps are provided in comments @kerneltime @BaluDontu |
||
---|---|---|
.. | ||
chaosmonkey | ||
common | ||
framework | ||
generated | ||
perftype | ||
testing-manifests | ||
upgrades | ||
BUILD | ||
addon_update.go | ||
apparmor.go | ||
autoscaling_utils.go | ||
cadvisor.go | ||
cluster_logging_es.go | ||
cluster_logging_gcl.go | ||
cluster_logging_utils.go | ||
cluster_size_autoscaling.go | ||
cluster_upgrade.go | ||
cronjob.go | ||
daemon_restart.go | ||
daemon_set.go | ||
dashboard.go | ||
density.go | ||
deployment.go | ||
disruption.go | ||
dns.go | ||
dns_autoscaling.go | ||
dns_configmap.go | ||
e2e-example-config.json | ||
e2e.go | ||
e2e_test.go | ||
empty.go | ||
empty_dir_wrapper.go | ||
etcd_failure.go | ||
events.go | ||
example_cluster_dns.go | ||
example_k8petstore.go | ||
examples.go | ||
firewall.go | ||
garbage_collector.go | ||
generated_clientset.go | ||
gke_local_ssd.go | ||
gke_node_pools.go | ||
ha_master.go | ||
horizontal_pod_autoscaling.go | ||
ingress.go | ||
ingress_utils.go | ||
initial_resources.go | ||
job.go | ||
kibana_logging.go | ||
kube_proxy.go | ||
kubectl.go | ||
kubelet.go | ||
kubelet_perf.go | ||
limit_range.go | ||
load.go | ||
logging_soak.go | ||
mesos.go | ||
metrics_grabber_test.go | ||
monitoring.go | ||
namespace.go | ||
network_partition.go | ||
networking.go | ||
networking_perf.go | ||
node_problem_detector.go | ||
nodeoutofdisk.go | ||
opaque_resource.go | ||
pd.go | ||
persistent_volumes-disruptive.go | ||
persistent_volumes-vsphere.go | ||
persistent_volumes.go | ||
pod_gc.go | ||
pods.go | ||
portforward.go | ||
pre_stop.go | ||
proxy.go | ||
pv_reclaimpolicy.go | ||
pvc_label_selector.go | ||
pvutil.go | ||
rc.go | ||
reboot.go | ||
replica_set.go | ||
rescheduler.go | ||
resize_nodes.go | ||
resource_quota.go | ||
restart.go | ||
scheduler_predicates.go | ||
security_context.go | ||
service.go | ||
service_accounts.go | ||
service_latency.go | ||
serviceloadbalancers.go | ||
ssh.go | ||
statefulset.go | ||
third-party.go | ||
ubernetes_lite.go | ||
util_iperf.go | ||
volume_provisioning.go | ||
volumes.go | ||
vsphere_utils.go | ||
vsphere_volume_placement.go |