kubernetes

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientSet

func CreateClientSet(kubeConfig string) (*kubernetes.Clientset, error)

CreateClientSet creates a clientset based on the given kubeConfig. If the kubeConfig is empty, it will creates the clientset based on the in-cluster config

func CreateClientSetApiserverAddr

func CreateClientSetApiserverAddr(apiserverAddr string) (*kubernetes.Clientset, error)

CreateClientSetApiserverAddr creates a clientset based on the given apiserverAddr. The clientset uses the serviceaccount's CA and Token for authentication and authorization.

func CreateClientSetKubeConfig

func CreateClientSetKubeConfig(kubeConfig string) (*kubernetes.Clientset, error)

CreateClientSet creates a clientset based on the given kubeconfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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