Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKubeConfig = filepath.Join(homedir.HomeDir(), "/.kube/config")
View Source
var DefaultSettings = &Settings{
Namespace: "default",
RequestTimeout: 0,
}
DefaultSettings initializes the settings to its defaults
Functions ¶
func KubeConfigHome ¶
func KubeConfigHome() string
func NewClientSet ¶
func NewClientSet(s *Settings) *kubernetes.Clientset
NewClientSet is a helper function that takes the Settings struct and returns a new kube Client
func NewRestClient ¶
func NewRestClient(s *Settings) *rest.RESTClient
Types ¶
type Settings ¶
type Settings struct { // KubeConfig is the path to an explicit kubeconfig file. This overwrites the value in $KUBECONFIG KubeConfig string // Namespace used when working with Kubernetes Namespace string // RequestTimeout is the timeout value (in seconds) when making API calls RequestTimeout int64 }
Settings defines global variables and settings
Click to show internal directories.
Click to hide internal directories.