kubernetes/test/utils
Dave Chen b9d9a5ebed Make sure the volume name is not empty when the PVC is bound
Current logic to check whether a PVC is fully bound are:
1. PVC's volume name is not empty
2. Annotation "pv.kubernetes.io/bind-completed" is properly set

The behavior in the test case only set the annotation, and leave the
volume name to be set by a `FakePVController`.

This will cause a problem for us to run some testcase like scheduler's
perf test, scheduling pod with volume as an example, the first try will
always hit "unbound immediate PersistentVolumeClaims" exception.

As a result, the metric data "schedule_attempts_total", or "scheduling_algorithm_duration_seconds"
will not accurate enough.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-12-11 16:57:51 +08:00
..
crd clean up test code 2019-09-05 23:44:19 +08:00
harness Run hack/update-vendor.sh 2020-05-16 07:54:33 -04:00
image e2e: add option to create pods with different image in pod.Config 2020-09-25 11:01:59 +02:00
junit update BUILD files 2017-10-15 18:18:13 -07:00
admission_webhook.go Fixup integration tests for TLS1.3 2019-11-06 17:39:05 -05:00
audit.go Fix staticcheck failures in test/utils/... 2019-10-01 09:46:45 -04:00
BUILD remove secondary client retries in e2e tests 2020-10-15 08:30:42 -04:00
conditions.go fix-todo 2017-09-25 15:42:21 +08:00
create_resources.go remove secondary client retries in e2e tests 2020-10-15 08:30:42 -04:00
delete_resources.go remove secondary client retries in e2e tests 2020-10-15 08:30:42 -04:00
density_utils.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
deployment.go Avoid panic when reporting error in conformance test 2020-04-07 08:37:02 -04:00
node.go Move pkg/api/v1/node to pkg/util/node (#73656) 2019-02-26 11:05:32 -08:00
paths.go Move path management from e2e_node to common test/utils directory 2018-04-27 11:12:10 -04:00
pki_helpers.go fix duplicated imports of k8s code (#77484) 2019-05-08 10:12:47 -07:00
pod_store.go generated: run refactor 2020-02-07 18:16:47 -08:00
replicaset.go generated: run refactor 2020-02-08 12:30:21 -05:00
runners.go Make sure the volume name is not empty when the PVC is bound 2020-12-11 16:57:51 +08:00
tmpdir.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
update_resources.go remove secondary client retries in e2e tests 2020-10-15 08:30:42 -04:00