k8sapi

package
v1.19.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 22 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAPIServerConnectivity added in v1.8.0

func CheckAPIServerConnectivity() error

func CheckAPIServerConnectivityWithTimeout added in v1.19.4

func CheckAPIServerConnectivityWithTimeout(pollInterval time.Duration, pollTimeout time.Duration) error

func CreateKubeClient

func CreateKubeClient(appName string) (client.Client, error)

CreateKubeClient creates a k8s client

func CreateKubeClientCache added in v1.15.0

func CreateKubeClientCache(restCfg *rest.Config, scheme *runtime.Scheme, filterMap map[client.Object]cache.ByObject) (cache.Cache, error)

Create cache reader for Kubernetes client

func GetKubeClientSet added in v1.8.0

func GetKubeClientSet() (kubernetes.Interface, error)

func GetNode added in v1.13.0

func GetNode(ctx context.Context, k8sClient client.Client) (corev1.Node, error)

func GetRestConfig added in v1.19.4

func GetRestConfig() (*rest.Config, error)

GetRestConfig returns a Kubernetes REST config for API interactions

func StartKubeClientCache added in v1.15.0

func StartKubeClientCache(cache cache.Cache)

Types

This section is empty.

Jump to

Keyboard shortcuts

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