diff --git a/tests/e2e/kubetest2-kops/gce/gcs.go b/tests/e2e/kubetest2-kops/gce/gcs.go index 1208dc82e4..9830ff7d69 100644 --- a/tests/e2e/kubetest2-kops/gce/gcs.go +++ b/tests/e2e/kubetest2-kops/gce/gcs.go @@ -80,10 +80,9 @@ func EnsureGCSBucket(bucketPath, projectID string) error { func DeleteGCSBucket(bucketPath, projectID string) error { rmArgs := []string{ - "gsutil", "rm", "-r", bucketPath, - } - if projectID != "" { - rmArgs = append(rmArgs, "-p", projectID) + "gsutil", + "-u", projectID, + "rm", "-r", bucketPath, } klog.Info(strings.Join(rmArgs, " "))