mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Delete unused Builder
type from kubelet.go
As far as I can tell, nothing uses this type. As a result, it doesn't really provide any benefit, and just clutters `kubelet.go`. There's also the risk of it falling out of date with `NewMainKubelet`, as nothing enforces `NewMainKubelet` being of the `Builder` type.
This commit is contained in:
parent
e03c7756c7
commit
6b5b8bb186
@ -204,39 +204,6 @@ type Bootstrap interface {
|
|||||||
RunOnce(<-chan kubetypes.PodUpdate) ([]RunPodResult, error)
|
RunOnce(<-chan kubetypes.PodUpdate) ([]RunPodResult, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Builder creates and initializes a Kubelet instance
|
|
||||||
type Builder func(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
|
|
||||||
kubeDeps *Dependencies,
|
|
||||||
crOptions *config.ContainerRuntimeOptions,
|
|
||||||
containerRuntime string,
|
|
||||||
runtimeCgroups string,
|
|
||||||
hostnameOverride string,
|
|
||||||
nodeIP string,
|
|
||||||
providerID string,
|
|
||||||
cloudProvider string,
|
|
||||||
certDirectory string,
|
|
||||||
rootDirectory string,
|
|
||||||
registerNode bool,
|
|
||||||
registerWithTaints []api.Taint,
|
|
||||||
allowedUnsafeSysctls []string,
|
|
||||||
remoteRuntimeEndpoint string,
|
|
||||||
remoteImageEndpoint string,
|
|
||||||
experimentalMounterPath string,
|
|
||||||
experimentalKernelMemcgNotification bool,
|
|
||||||
experimentalCheckNodeCapabilitiesBeforeMount bool,
|
|
||||||
experimentalNodeAllocatableIgnoreEvictionThreshold bool,
|
|
||||||
minimumGCAge metav1.Duration,
|
|
||||||
maxPerPodContainerCount int32,
|
|
||||||
maxContainerCount int32,
|
|
||||||
masterServiceNamespace string,
|
|
||||||
registerSchedulable bool,
|
|
||||||
nonMasqueradeCIDR string,
|
|
||||||
keepTerminatedPodVolumes bool,
|
|
||||||
nodeLabels map[string]string,
|
|
||||||
seccompProfileRoot string,
|
|
||||||
bootstrapCheckpointPath string,
|
|
||||||
nodeStatusMaxImages int32) (Bootstrap, error)
|
|
||||||
|
|
||||||
// Dependencies is a bin for things we might consider "injected dependencies" -- objects constructed
|
// Dependencies is a bin for things we might consider "injected dependencies" -- objects constructed
|
||||||
// at runtime that are necessary for running the Kubelet. This is a temporary solution for grouping
|
// at runtime that are necessary for running the Kubelet. This is a temporary solution for grouping
|
||||||
// these objects while we figure out a more comprehensive dependency injection story for the Kubelet.
|
// these objects while we figure out a more comprehensive dependency injection story for the Kubelet.
|
||||||
|
Loading…
Reference in New Issue
Block a user