k8sconfig

package
v0.0.0-...-0f65fd7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(masterURL, kubeconfig string) (*rest.Config, error)

GetConfig returns a rest.Config to be used for kubernetes client creation. It does so in the following order:

  1. Use the passed kubeconfig/masterURL.
  2. Fallback to the KUBECONFIG environment variable.
  3. Fallback to in-cluster config.
  4. Fallback to the ~/.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