Kubemark: fix typos to be HollowKubeletOptions

This commit is contained in:
Hyeongju Johannes Lee 2022-09-20 14:44:24 +03:00
parent f0823c0f59
commit 963935ed2e
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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)