Skip to content

Commit

Permalink
kubeadm: allow passing the --patches flag to init/join/node phases
Browse files Browse the repository at this point in the history
Allow passing the --patches flag to init/join/node phases
relevant to the kubelet writing the config file on disk.
  • Loading branch information
neolit123 committed Jun 6, 2022
1 parent 428c3fe commit 2134026
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func NewKubeletStartPhase() workflow.Phase {
options.CfgPath,
options.NodeCRISocket,
options.NodeName,
options.Patches,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/join/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func NewKubeletStartPhase() workflow.Phase {
options.TokenDiscoverySkipCAHash,
options.TLSBootstrapToken,
options.TokenStr,
options.Patches,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/upgrade/node/kubeletconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func NewKubeletConfigPhase() workflow.Phase {
InheritFlags: []string{
options.DryRun,
options.KubeconfigPath,
options.Patches,
},
}
return phase
Expand Down

0 comments on commit 2134026

Please sign in to comment.