Skip to content

Commit

Permalink
Merge pull request #8334 from rifelpet/coredns-spec
Browse files Browse the repository at this point in the history
Allow CoreDNS to be specified by create cluster overrides
  • Loading branch information
k8s-ci-robot committed Jan 14, 2020
2 parents de4a86f + b7960f0 commit b396899
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/commands/set_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ func SetClusterFields(fields []string, cluster *api.Cluster, instanceGroups []*a
cluster.Spec.KubernetesVersion = kv[1]
case "spec.masterPublicName":
cluster.Spec.MasterPublicName = kv[1]
case "spec.kubeDNS.provider":
if cluster.Spec.KubeDNS == nil {
cluster.Spec.KubeDNS = &api.KubeDNSConfig{}
}
cluster.Spec.KubeDNS.Provider = kv[1]
case "cluster.spec.etcdClusters[*].enableEtcdTLS":
v, err := strconv.ParseBool(kv[1])
if err != nil {
Expand Down

0 comments on commit b396899

Please sign in to comment.