kubeconf

package
v0.0.0-...-22d9994 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeletConfigFromLocalFile

func GetKubeletConfigFromLocalFile(kubeletConfigPath string) (*kubeletconfigv1beta1.KubeletConfiguration, error)

GetKubeletConfigFromLocalFile returns KubeletConfiguration loaded from the node local config based on https://github.com/kubernetes/kubernetes/blob/master/cmd/kubelet/app/server.go#L337 it fills empty fields with default values

func GetKubeletConfiguration

func GetKubeletConfiguration(restConfig *rest.Config) (*kubeletconfigv1beta1.KubeletConfiguration, error)

GetKubeletConfiguration returns the kubelet configuration.

func InsecureConfig

func InsecureConfig(host, tokenFile string) (*rest.Config, error)

InsecureConfig returns a kubelet API config object which uses the token path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL