mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
config set cluster api value
This commit is contained in:
parent
1d97472361
commit
b9d0c76dfd
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user