Skip to content

Commit aba6aa4

Browse files
authored
Merge pull request kubernetes#130867 from vinayakankugoyal/gitRepo
Fix failing git_repo e2e release informing tests.
2 parents 473ec01 + 2b504a7 commit aba6aa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/storage/empty_dir_wrapper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import (
2626
"k8s.io/apimachinery/pkg/labels"
2727
"k8s.io/apimachinery/pkg/util/intstr"
2828
"k8s.io/apimachinery/pkg/util/uuid"
29+
"k8s.io/kubernetes/pkg/features"
2930
"k8s.io/kubernetes/test/e2e/framework"
3031
e2enode "k8s.io/kubernetes/test/e2e/framework/node"
3132
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
@@ -199,7 +200,7 @@ var _ = utils.SIGDescribe("EmptyDir wrapper volumes", func() {
199200
// This test uses deprecated GitRepo VolumeSource so it MUST not be promoted to Conformance.
200201
// To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.
201202
// This projected volume maps approach can also be tested with secrets and downwardapi VolumeSource but are less prone to the race problem.
202-
f.It("should not cause race condition when used for git_repo", f.WithSerial(), f.WithSlow(), func(ctx context.Context) {
203+
f.It("should not cause race condition when used for git_repo", f.WithFeatureGate(features.GitRepoVolumeDriver), f.WithSerial(), f.WithSlow(), func(ctx context.Context) {
203204
gitURL, gitRepo, cleanup := createGitServer(ctx, f)
204205
defer cleanup()
205206
volumes, volumeMounts := makeGitRepoVolumes(gitURL, gitRepo)

0 commit comments

Comments
 (0)