Skip to content

Commit

Permalink
add masterPublicName support in kops set cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Camilo Santana authored Jun 18, 2019
1 parent ed8865a commit 1bff3f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/commands/set_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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]
Expand Down

0 comments on commit 1bff3f1

Please sign in to comment.