From b7960f04d4f9d3c799e890a208027e9116edb227 Mon Sep 17 00:00:00 2001 From: Peter Rifel Date: Tue, 14 Jan 2020 08:14:33 -0600 Subject: [PATCH] Allow CoreDNS to be specified by create cluster overrides This will more easily allow our end-to-end testing to use CoreDNS rather than KubeDNS --- pkg/commands/set_cluster.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/commands/set_cluster.go b/pkg/commands/set_cluster.go index 8a8fcf83118fd..c382a96f831fe 100644 --- a/pkg/commands/set_cluster.go +++ b/pkg/commands/set_cluster.go @@ -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 {