Skip to content

Commit

Permalink
Rename flag from network-plugin-dir -> cni-bin-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Oct 23, 2017
1 parent d550332 commit 7c695e7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nodeup/pkg/model/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,13 @@ func (b *KubeletBuilder) buildSystemdEnvironmentFile(kubeletConfig *kops.Kubelet
}

if b.Cluster.Spec.Networking != nil && b.Cluster.Spec.Networking.Kubenet != nil {
// Kubenet is neither CNI nor not-CNI, so we need to pass it `--network-plugin-dir` also
flags += " --network-plugin-dir=" + b.CNIBinDir()
// Kubenet is neither CNI nor not-CNI, so we need to pass it `--cni-bin-dir` also
if b.IsKubernetesGTE("1.9") {
// Flag renamed in #53564
flags += " --cni-bin-dir=" + b.CNIBinDir()
} else {
flags += " --network-plugin-dir=" + b.CNIBinDir()
}
}

if b.usesContainerizedMounter() {
Expand Down

0 comments on commit 7c695e7

Please sign in to comment.