kubernetes

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(kubeconfig, kubecontext, baseName string) (*rest.Config, error)

config returns a *rest.Config, using either the kubeconfig (if specified) or an in-cluster configuration. baseName is used to build the user agent to tell the API Server who is calling it. set to "ubiquity" if we, the ubiquity hook executor, is calling the APIs. Note that we only need the in-cluster way in production env, others are for test perpose only.

func GetClientset

func GetClientset(baseName string) kubernetes.Interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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