automaticontext

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(kubeconfigPath string) (kubernetes.Interface, error)

func Config

func Config(kubeconfigPath string) (*rest.Config, error)

func CurrentNamespace

func CurrentNamespace() (string, error)

CurrentNamespace tries to retrieve the current namespace first in the /secrets/kubernetes.io/serviceaccount/namespace file, then in the kubeconfig file, and default to "default" if neither are set

Types

This section is empty.

Jump to

Keyboard shortcuts

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