mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +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
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -129,8 +129,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
|
||||
@ -142,7 +142,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)
|
||||
|
Loading…
Reference in New Issue
Block a user