kubeadm: allow passing the --patches flag to init/join/node phases

Allow passing the --patches flag to init/join/node phases
relevant to the kubelet writing the config file on disk.
This commit is contained in:
Lubomir I. Ivanov 2022-06-06 20:34:52 +03:00
parent 428c3fe954
commit 2134026e3b
3 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,7 @@ func NewKubeletStartPhase() workflow.Phase {
options.CfgPath,
options.NodeCRISocket,
options.NodeName,
options.Patches,
},
}
}

View File

@ -76,6 +76,7 @@ func NewKubeletStartPhase() workflow.Phase {
options.TokenDiscoverySkipCAHash,
options.TLSBootstrapToken,
options.TokenStr,
options.Patches,
},
}
}

View File

@ -48,6 +48,7 @@ func NewKubeletConfigPhase() workflow.Phase {
InheritFlags: []string{
options.DryRun,
options.KubeconfigPath,
options.Patches,
},
}
return phase