Skip to content

Commit d61bcbd

Browse files
authored
Merge pull request #2033 from julianKatz/ci-tests-autoupgrade-for-release-channels
Enable autoupgrade when creating extended channel GKE clusters in CI
2 parents 2ec1e10 + 3670147 commit d61bcbd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,13 @@ func clusterUpGKE(gceZone, gceRegion string, numNodes int, numWindowsNodes int,
219219
cmdParams = append(cmdParams, "--cluster-version", *gkeClusterVer)
220220
} else {
221221
cmdParams = append(cmdParams, "--release-channel", *gkeReleaseChannel)
222-
// release channel based GKE clusters require autorepair to be enabled.
222+
// Release channel based GKE clusters require autorepair to be enabled.
223223
cmdParams = append(cmdParams, "--enable-autorepair")
224+
225+
// Extended channel clusters require autoupgrade to be enabled.
226+
if *gkeReleaseChannel == "extended" {
227+
cmdParams = append(cmdParams, "--enable-autoupgrade")
228+
}
224229
}
225230

226231
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)