Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some intree tests create disks with names which is a combination of
cluster name + UUID, and exceeds the 63 chars limit of disk resources
What type of PR is this?
What this PR does / why we need it:
Fix in-tree tests run on GKE clusters
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
For reference of how the pd name is created: https://github.com/kubernetes/kubernetes/blob/master/test/e2e/framework/providers/gce/gce.go#L208
Without this fix, the disk resource name is something like this
gke-gcp-pd-csi-driver-test-cluster-8ac691ac-4d1f-41ed-9d6c-e528d0101609
which results in errorInvalid value for field 'resource.name': 'gke-gcp-pd-csi-driver-test-cluster-8ac691ac-4d1f-41ed-9d6c-e528d0101609'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'
Does this PR introduce a user-facing change?: