clientcmd

package
v0.0.0-...-8b6a416 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 5 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 NewClusterApiClientForDefaultSearchPath

func NewClusterApiClientForDefaultSearchPath(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (*clientset.Clientset, error)

NewClusterApiClientForDefaultSearchPath creates a Cluster API 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.

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 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