Explictly set GKE cluster version to 'latest' (#727)

This commit is contained in:
chaodaiG 2019-09-27 20:23:42 -07:00 committed by Knative Prow Robot
parent f6eb4a55ec
commit 1c104e1f43
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,7 @@ const (
DefaultGKEZone = ""
regionEnv = "E2E_CLUSTER_REGION"
backupRegionEnv = "E2E_CLUSTER_BACKUP_REGIONS"
defaultGKEVersion = "latest"
)
var (
@ -282,6 +283,9 @@ func (gc *GKECluster) Acquire() error {
rb := &container.CreateClusterRequest{
Cluster: &container.Cluster{
Name: clusterName,
// The default cluster version is not latest, has to explicitly
// set it as "latest"
InitialClusterVersion: defaultGKEVersion,
// Installing addons after cluster creation takes at least 5
// minutes, so install addons as part of cluster creation, which
// doesn't seem to add much time on top of cluster creation