kubernetesk8s.io/kubernetes/pkg/kubelet/kubeletconfig/configfiles Index | Files

package configfiles

import "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/configfiles"

Index

Types

type Loader

type Loader interface {
	// Load loads and returns the KubeletConfiguration from the storage layer, or an error if a configuration could not be loaded
	Load() (*kubeletconfig.KubeletConfiguration, error)
	// LoadIntoJSON loads and returns the KubeletConfiguration from the storage layer, or an error if a configuration could not be
	// loaded. It returns the configuration as a JSON byte slice
	LoadIntoJSON() ([]byte, *schema.GroupVersionKind, error)
}

Loader loads configuration from a storage layer

func NewFsLoader

func NewFsLoader(fs utilfs.Filesystem, kubeletFile string) (Loader, error)

NewFsLoader returns a Loader that loads a KubeletConfiguration from the `kubeletFile`

Source Files

configfiles.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
6 hours ago

Tools for package owners.