Skip to content

Commit

Permalink
Allow CoreDNS to be specified by create cluster overrides
Browse files Browse the repository at this point in the history
This will more easily allow our end-to-end testing to use CoreDNS rather than KubeDNS
  • Loading branch information
rifelpet committed Jan 14, 2020
1 parent 7a65c25 commit b7960f0
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 b7960f0

Please sign in to comment.