Merge pull request #112627 from hj-johannes-lee/fix-typo-3

Kubemark: fix typos to be HollowKubeletOptions
This commit is contained in:
Kubernetes Prow Robot 2022-12-09 15:43:14 -08:00 committed by GitHub
commit da588a31d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

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

View File

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