Skip to content

Commit

Permalink
Merge pull request kubernetes#112627 from hj-johannes-lee/fix-typo-3
Browse files Browse the repository at this point in the history
Kubemark: fix typos to be HollowKubeletOptions
  • Loading branch information
k8s-ci-robot authored Dec 9, 2022
2 parents b9bfbb3 + 963935e commit da588a3
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/kubemark/hollow-node.go
Original file line number Diff line number Diff line change
@@ -131,8 +131,8 @@ func (c *hollowNodeConfig) bootstrapClientConfig() error {
return nil
}

func (c *hollowNodeConfig) createHollowKubeletOptions() *kubemark.HollowKubletOptions {
return &kubemark.HollowKubletOptions{
func (c *hollowNodeConfig) createHollowKubeletOptions() *kubemark.HollowKubeletOptions {
return &kubemark.HollowKubeletOptions{
NodeName: c.NodeName,
KubeletPort: c.KubeletPort,
KubeletReadOnlyPort: c.KubeletReadOnlyPort,
6 changes: 3 additions & 3 deletions pkg/kubemark/hollow_kubelet.go
Original file line number Diff line number Diff line change
@@ -131,8 +131,8 @@ func (hk *HollowKubelet) Run() {
select {}
}

// HollowKubletOptions contains settable parameters for hollow kubelet.
type HollowKubletOptions struct {
// HollowKubeletOptions contains settable parameters for hollow kubelet.
type HollowKubeletOptions struct {
NodeName string
KubeletPort int
KubeletReadOnlyPort int
@@ -144,7 +144,7 @@ type HollowKubletOptions struct {

// Builds a KubeletConfiguration for the HollowKubelet, ensuring that the
// 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.", "")
podFilePath := utils.MakeTempDirOrDie("static-pods", testRootDir)
klog.Infof("Using %s as root dir for hollow-kubelet", testRootDir)

0 comments on commit da588a3

Please sign in to comment.