mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
move provideclusterinfo assignment into correct place
This commit is contained in:
parent
b088e65007
commit
5e5f8b1dd2
@ -302,8 +302,6 @@ func (o *setCredentialsOptions) modifyAuthInfo(existingAuthInfo clientcmdapi.Aut
|
||||
// explicitly reset exec arguments
|
||||
modifiedAuthInfo.Exec.Args = nil
|
||||
}
|
||||
|
||||
modifiedAuthInfo.Exec.ProvideClusterInfo = o.execProvideClusterInfo
|
||||
}
|
||||
|
||||
// modify next values only if Exec exists, ignore these changes otherwise
|
||||
@ -321,6 +319,8 @@ func (o *setCredentialsOptions) modifyAuthInfo(existingAuthInfo clientcmdapi.Aut
|
||||
modifiedAuthInfo.Exec.InteractiveMode = clientcmdapi.ExecInteractiveMode(o.execInteractiveMode.Value())
|
||||
}
|
||||
|
||||
modifiedAuthInfo.Exec.ProvideClusterInfo = o.execProvideClusterInfo
|
||||
|
||||
// iterate over the existing exec env values and remove the specified
|
||||
if o.execEnvToRemove != nil {
|
||||
newExecEnv := []clientcmdapi.ExecEnvVar{}
|
||||
|
Loading…
Reference in New Issue
Block a user