Skip to content

Commit 3670147

Browse files
committed
Add flag for extended channel only
1 parent 86714ab commit 3670147

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: test/k8s-integration/cluster.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,11 @@ func clusterUpGKE(gceZone, gceRegion string, numNodes int, numWindowsNodes int,
221221
cmdParams = append(cmdParams, "--release-channel", *gkeReleaseChannel)
222222
// Release channel based GKE clusters require autorepair to be enabled.
223223
cmdParams = append(cmdParams, "--enable-autorepair")
224+
224225
// Extended channel clusters require autoupgrade to be enabled.
225-
cmdParams = append(cmdParams, "--enable-autoupgrade")
226+
if *gkeReleaseChannel == "extended" {
227+
cmdParams = append(cmdParams, "--enable-autoupgrade")
228+
}
226229
}
227230

228231
if isVariableSet(gkeNodeVersion) {

Diff for: test/k8s-integration/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var (
5151
numNodes = flag.Int("num-nodes", 0, "the number of nodes in the test cluster")
5252
numWindowsNodes = flag.Int("num-windows-nodes", 0, "the number of Windows nodes in the test cluster")
5353
imageType = flag.String("image-type", "cos_containerd", "the image type to use for the cluster")
54-
gkeReleaseChannel = flag.String("gke-release-channel", "", "GKE release channel to be used for cluster deploy. One of 'rapid', 'stable' or 'regular'")
54+
gkeReleaseChannel = flag.String("gke-release-channel", "", "GKE release channel to be used for cluster deploy. One of 'rapid', 'stable', 'regular' or 'extended'")
5555
gkeTestClusterPrefix = flag.String("gke-cluster-prefix", "pdcsi", "Prefix of GKE cluster names. A random suffix will be appended to form the full name.")
5656
gkeTestClusterName = flag.String("gke-cluster-name", "", "Name of existing cluster")
5757
gkeNodeVersion = flag.String("gke-node-version", "", "GKE cluster worker node version")

0 commit comments

Comments
 (0)