mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Make createAndInitKubelet public to be reusable
This commit is contained in:
@@ -714,7 +714,7 @@ func RunKubelet(kcfg *KubeletConfig) error {
|
||||
|
||||
builder := kcfg.Builder
|
||||
if builder == nil {
|
||||
builder = createAndInitKubelet
|
||||
builder = CreateAndInitKubelet
|
||||
}
|
||||
if kcfg.OSInterface == nil {
|
||||
kcfg.OSInterface = kubecontainer.RealOS{}
|
||||
@@ -848,7 +848,7 @@ type KubeletConfig struct {
|
||||
VolumePlugins []volume.VolumePlugin
|
||||
}
|
||||
|
||||
func createAndInitKubelet(kc *KubeletConfig) (k KubeletBootstrap, pc *config.PodConfig, err error) {
|
||||
func CreateAndInitKubelet(kc *KubeletConfig) (k KubeletBootstrap, pc *config.PodConfig, err error) {
|
||||
// TODO: block until all sources have delivered at least one update to the channel, or break the sync loop
|
||||
// up into "per source" synchronizations
|
||||
// TODO: KubeletConfig.KubeClient should be a client interface, but client interface misses certain methods
|
||||
|
Reference in New Issue
Block a user