config set cluster api value

This commit is contained in:
juanvallejo 2017-02-08 10:22:21 -05:00
parent 1d97472361
commit b9d0c76dfd

View File

@ -121,6 +121,9 @@ func (o createClusterOptions) run() error {
func (o *createClusterOptions) modifyCluster(existingCluster clientcmdapi.Cluster) clientcmdapi.Cluster {
modifiedCluster := existingCluster
if o.apiVersion.Provided() {
modifiedCluster.APIVersion = o.apiVersion.Value()
}
if o.server.Provided() {
modifiedCluster.Server = o.server.Value()
}