kubeconfig

package
v0.0.0-...-f706b47 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterKubernetesClientFromToken

func GetClusterKubernetesClientFromToken(token string) (*kubernetes.Clientset, error)

Gets an in-cluster Kubernetes configuration but with the specified token as the bearer token. This configuration will only work in this cluster, the specified token must therefore also be a ServiceAccount in this cluster.

func GetKubeConfig

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

func GetKubernetesClient

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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