mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Kubemark: fix typos to be HollowKubeletOptions
This commit is contained in:
parent
f0823c0f59
commit
963935ed2e
@ -131,8 +131,8 @@ func (c *hollowNodeConfig) bootstrapClientConfig() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *hollowNodeConfig) createHollowKubeletOptions() *kubemark.HollowKubletOptions {
|
func (c *hollowNodeConfig) createHollowKubeletOptions() *kubemark.HollowKubeletOptions {
|
||||||
return &kubemark.HollowKubletOptions{
|
return &kubemark.HollowKubeletOptions{
|
||||||
NodeName: c.NodeName,
|
NodeName: c.NodeName,
|
||||||
KubeletPort: c.KubeletPort,
|
KubeletPort: c.KubeletPort,
|
||||||
KubeletReadOnlyPort: c.KubeletReadOnlyPort,
|
KubeletReadOnlyPort: c.KubeletReadOnlyPort,
|
||||||
|
@ -129,8 +129,8 @@ func (hk *HollowKubelet) Run() {
|
|||||||
select {}
|
select {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// HollowKubletOptions contains settable parameters for hollow kubelet.
|
// HollowKubeletOptions contains settable parameters for hollow kubelet.
|
||||||
type HollowKubletOptions struct {
|
type HollowKubeletOptions struct {
|
||||||
NodeName string
|
NodeName string
|
||||||
KubeletPort int
|
KubeletPort int
|
||||||
KubeletReadOnlyPort int
|
KubeletReadOnlyPort int
|
||||||
@ -142,7 +142,7 @@ type HollowKubletOptions struct {
|
|||||||
|
|
||||||
// Builds a KubeletConfiguration for the HollowKubelet, ensuring that the
|
// Builds a KubeletConfiguration for the HollowKubelet, ensuring that the
|
||||||
// usual defaults are applied for fields we do not override.
|
// usual defaults are applied for fields we do not override.
|
||||||
func GetHollowKubeletConfig(opt *HollowKubletOptions) (*options.KubeletFlags, *kubeletconfig.KubeletConfiguration) {
|
func GetHollowKubeletConfig(opt *HollowKubeletOptions) (*options.KubeletFlags, *kubeletconfig.KubeletConfiguration) {
|
||||||
testRootDir := utils.MakeTempDirOrDie("hollow-kubelet.", "")
|
testRootDir := utils.MakeTempDirOrDie("hollow-kubelet.", "")
|
||||||
podFilePath := utils.MakeTempDirOrDie("static-pods", testRootDir)
|
podFilePath := utils.MakeTempDirOrDie("static-pods", testRootDir)
|
||||||
klog.Infof("Using %s as root dir for hollow-kubelet", testRootDir)
|
klog.Infof("Using %s as root dir for hollow-kubelet", testRootDir)
|
||||||
|
Loading…
Reference in New Issue
Block a user