kubeops

package
v0.11.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	RecommendedConfigPathEnvVar   = "KUBECONFIG"
	RecommendedHomeDir            = ".kube"
	RecommendedKubeConfigFileName = "config"
)

Variables

Functions

func GetKubeConfig

func GetKubeConfig(resource *apiv1.Resource) string

GetKubeConfig gets kubeConfig in the following order: 1. If $KUBECONFIG environment variable is set, then it is used. 2. If not, and the `kubeConfig` in resource extensions is set, then it is used. 3. Otherwise, ${HOME}/.kube/config is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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