kubeconfig

package
v0.0.0-...-06d3161 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() *clientcmdapi.Config

Create creates a new kubeconfig file

func CurrentContext

func CurrentContext(kubeconfigPath []string) string

CurrentContext returns the name of the current context

func CurrentNamespace

func CurrentNamespace(kubeconfigPath []string) string

CurrentNamespace returns the name of the namespace in use by a given context

func Get

func Get(kubeconfigPaths []string) *clientcmdapi.Config

Get retrieves a kubeconfig file

func InCluster

func InCluster() bool

InCluster returns true if Okteto is running on a Kubernetes cluster

func Write

func Write(cfg *clientcmdapi.Config, kubeconfigPath string) error

Write stores a kubeconfig file

Types

This section is empty.

Jump to

Keyboard shortcuts

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