kubeconf

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

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