mirror of https://github.com/kubernetes/kops.git
modify check require-kubeconfig
This commit is contained in:
parent
cc67497776
commit
30b10cb1c8
|
|
@ -120,8 +120,8 @@ func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error {
|
||||||
clusterSpec.Kubelet.KubeconfigPath = kubeconfigPath
|
clusterSpec.Kubelet.KubeconfigPath = kubeconfigPath
|
||||||
clusterSpec.MasterKubelet.KubeconfigPath = kubeconfigPath
|
clusterSpec.MasterKubelet.KubeconfigPath = kubeconfigPath
|
||||||
|
|
||||||
// Only pass require-kubeconfig to versions prior to 1.10; deprecated & being removed
|
// Only pass require-kubeconfig to versions prior to 1.9; deprecated & being removed
|
||||||
if b.Context.IsKubernetesLT("1.10") {
|
if b.Context.IsKubernetesLT("1.9") {
|
||||||
clusterSpec.Kubelet.RequireKubeconfig = fi.Bool(true)
|
clusterSpec.Kubelet.RequireKubeconfig = fi.Bool(true)
|
||||||
clusterSpec.MasterKubelet.RequireKubeconfig = fi.Bool(true)
|
clusterSpec.MasterKubelet.RequireKubeconfig = fi.Bool(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue