clientcmd

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package clientcmd contains convenience methods for working with the kubeconfig and loading specific configurations of api.Config and rest.Config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigOverrides

func NewConfigOverrides() clientcmd.ConfigOverrides

This is a convenience method to prevent the need of importing both this version of clientcmd and the client-go version

func NewControllerRuntimeClient added in v0.2.0

func NewControllerRuntimeClient(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (client.Client, error)

NewControllerRuntimeClient creates a controller-runtime Client. If the kubeconfigPath is specified then the configuration is loaded from that path, otherwise the default kubeconfig search path is used. The overrides parameter is used to select a specific context of the config, for example, select the context with a given cluster name or namespace.

func NewCoreClientSetForDefaultSearchPath

func NewCoreClientSetForDefaultSearchPath(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (*kubernetes.Clientset, error)

NewCoreClientSetForDefaultSearchPath creates a core kubernetes clientset. If the kubeconfigPath is specified then the configuration is loaded from that path, otherwise the default kubeconfig search path is used. The overrides parameter is used to select a specific context of the config, for example, select the context with a given cluster name or namespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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