diff --git a/pkg/commands/set_cluster.go b/pkg/commands/set_cluster.go index f13a4ca607533..f5f2d3c691877 100644 --- a/pkg/commands/set_cluster.go +++ b/pkg/commands/set_cluster.go @@ -93,7 +93,8 @@ func SetClusterFields(fields []string, cluster *api.Cluster, instanceGroups []*a cluster.Spec.NodePortAccess = append(cluster.Spec.NodePortAccess, kv[1]) case "spec.kubernetesVersion": cluster.Spec.KubernetesVersion = kv[1] - + case "spec.masterPublicName": + cluster.Spec.MasterPublicName = kv[1] case "cluster.spec.etcdClusters[*].enableEtcdTLS": v, err := strconv.ParseBool(kv[1]) if err != nil { @@ -102,7 +103,6 @@ func SetClusterFields(fields []string, cluster *api.Cluster, instanceGroups []*a for _, c := range cluster.Spec.EtcdClusters { c.EnableEtcdTLS = v } - case "cluster.spec.etcdClusters[*].enableTLSAuth": v, err := strconv.ParseBool(kv[1]) if err != nil { @@ -111,7 +111,6 @@ func SetClusterFields(fields []string, cluster *api.Cluster, instanceGroups []*a for _, c := range cluster.Spec.EtcdClusters { c.EnableTLSAuth = v } - case "cluster.spec.etcdClusters[*].version": for _, c := range cluster.Spec.EtcdClusters { c.Version = kv[1]