kube

package
v0.0.0-...-349f63c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace              = "default"
	DefaultKubeHostEnvKey  = "KUBE_API_SERVER" // in debug model, replace incluster config
	DefaultKubeTokenEnvKey = "KUBE_SA_TOKEN"   // in debug model, replace incluster config
	DefaultSyncTime        = 30 * time.Minute  // reflush time

)

Variables

This section is empty.

Functions

func GetKubeClusterConfig

func GetKubeClusterConfig() (cfg *rest.Config, err error)

func NewInClusterClientSet

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

init new incluster kube config

Types

This section is empty.

Jump to

Keyboard shortcuts

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