Skip to content

Commit

Permalink
default ack version
Browse files Browse the repository at this point in the history
  • Loading branch information
GLYASAI committed Jul 6, 2021
1 parent 6dbc642 commit cda87d4
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.18.8-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 cda87d4

Please sign in to comment.