Skip to content

Commit

Permalink
Merge pull request #13 from GLYASAI/V5.3
Browse files Browse the repository at this point in the history
Feature: update ack to 1.18.8-aliyun.1
  • Loading branch information
barnettZQG authored Jul 6, 2021
2 parents 4a5d009 + cda87d4 commit 1bf1360
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/adaptor/v1alpha1/ack_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ package v1alpha1

import (
"net"
"os"
"strings"
)

//GetDefaultACKCreateClusterConfig get create ack cluster default config
func GetDefaultACKCreateClusterConfig(config KubernetesClusterConfig) CreateClusterConfig {
kubernetesVersion := "1.16.9-aliyun.1"
defaultAckVersion := os.Getenv("DEFAULT_ACK_VERSION")
if defaultAckVersion == "" {
defaultAckVersion = "1.18.8-aliyun.1"
}
kubernetesVersion := defaultAckVersion
if config.KubernetesVersion != "" && strings.Contains(config.KubernetesVersion, "aliyun") {
kubernetesVersion = config.KubernetesVersion
}
Expand Down

0 comments on commit 1bf1360

Please sign in to comment.