k8s

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientset

func GetClientset() (*kubernetes.Clientset, error)

GetClientset returns the Kubernetes clientset. If the clientset has not been initialized, it creates a new one based on the config obtained from GetConfig. It returns the clientset or an error if there is any issue.

func GetConfig

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

GetConfig returns the Kubernetes REST configuration. If the configuration has not been initialized, it retrieves the in-cluster config. It returns the config or an error if there is any issue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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