Skip to content

Enable autoupgrade when creating extended channel GKE clusters in CI #2033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/k8s-integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,13 @@ func clusterUpGKE(gceZone, gceRegion string, numNodes int, numWindowsNodes int,
cmdParams = append(cmdParams, "--cluster-version", *gkeClusterVer)
} else {
cmdParams = append(cmdParams, "--release-channel", *gkeReleaseChannel)
// release channel based GKE clusters require autorepair to be enabled.
// Release channel based GKE clusters require autorepair to be enabled.
cmdParams = append(cmdParams, "--enable-autorepair")

// Extended channel clusters require autoupgrade to be enabled.
if *gkeReleaseChannel == "extended" {
cmdParams = append(cmdParams, "--enable-autoupgrade")
}
}

if isVariableSet(gkeNodeVersion) {
Expand Down
2 changes: 1 addition & 1 deletion test/k8s-integration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var (
numNodes = flag.Int("num-nodes", 0, "the number of nodes in the test cluster")
numWindowsNodes = flag.Int("num-windows-nodes", 0, "the number of Windows nodes in the test cluster")
imageType = flag.String("image-type", "cos_containerd", "the image type to use for the cluster")
gkeReleaseChannel = flag.String("gke-release-channel", "", "GKE release channel to be used for cluster deploy. One of 'rapid', 'stable' or 'regular'")
gkeReleaseChannel = flag.String("gke-release-channel", "", "GKE release channel to be used for cluster deploy. One of 'rapid', 'stable', 'regular' or 'extended'")
gkeTestClusterPrefix = flag.String("gke-cluster-prefix", "pdcsi", "Prefix of GKE cluster names. A random suffix will be appended to form the full name.")
gkeTestClusterName = flag.String("gke-cluster-name", "", "Name of existing cluster")
gkeNodeVersion = flag.String("gke-node-version", "", "GKE cluster worker node version")
Expand Down