You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isRegionalCluster=flag.Bool("is-regional-cluster", false, "tell the test that a regional cluster is being used. Should be used for running on an existing regional cluster (ie, --bringup-cluster=false). The test will fail if a zonal GKE cluster is created when this flag is true")
52
53
53
54
// Test infrastructure flags
54
55
boskosResourceType=flag.String("boskos-resource-type", "gce-project", "name of the boskos resource type to reserve")
@@ -74,6 +75,7 @@ const (
74
75
k8sOutOfDockerBuildBinDir="_output/bin"
75
76
externalDriverNamespace="gce-pd-csi-driver"
76
77
managedDriverNamespace="kube-system"
78
+
regionalPDStorageClass="sc-regional.yaml"
77
79
)
78
80
79
81
funcinit() {
@@ -97,11 +99,11 @@ func main() {
97
99
ensureVariable(deployOverlayName, false, "'deploy-overlay-name' must not be set when using GKE managed driver")
98
100
}
99
101
100
-
if*deployOverlayName!="noauth" {
101
-
ensureVariable(saFile, true, "service-account-file is a required flag")
102
-
}
103
102
if!*useGKEManagedDriver {
104
103
ensureVariable(deployOverlayName, true, "deploy-overlay-name is a required flag")
104
+
if*deployOverlayName!="noauth" {
105
+
ensureVariable(saFile, true, "service-account-file is a required flag")
106
+
}
105
107
}
106
108
107
109
ensureVariable(testFocus, true, "test-focus is a required flag")
@@ -122,6 +124,9 @@ func main() {
122
124
ensureVariable(kubeFeatureGates, false, "kube-feature-gates set but not bringing up new cluster")
123
125
} else {
124
126
ensureVariable(imageType, true, "image type is a required flag. Available options include 'cos' and 'ubuntu'")
127
+
if*isRegionalCluster {
128
+
klog.Error("is-regional-cluster can only be set when using an existing cluster")
0 commit comments