config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

The config package contains libraries for initializing rest configs for talking to the Kubernetes API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() (*rest.Config, error)

GetConfig creates a *rest.Config for talking to a Kubernetes apiserver. If --kubeconfig is set, will use the kubeconfig file at that location. Otherwise will assume running in cluster and use the cluster provided kubeconfig.

Will log.Fatal if KubernetesInformers cannot be created

func GetConfigOrDie

func GetConfigOrDie() *rest.Config

GetConfig creates a *rest.Config for talking to a Kubernetes apiserver. If --kubeconfig is set, will use the kubeconfig file at that location. Otherwise will assume running in cluster and use the cluster provided kubeconfig.

func GetKubernetesClientSet

func GetKubernetesClientSet() (*kubernetes.Clientset, error)

GetKubernetesClientSet creates a *kubernetes.ClientSet for talking to a Kubernetes apiserver. If --kubeconfig is set, will use the kubeconfig file at that location. Otherwise will assume running in cluster and use the cluster provided kubeconfig.

func GetKubernetesClientSetOrDie

func GetKubernetesClientSetOrDie() (*kubernetes.Clientset, error)

GetKubernetesClientSetOrDie creates a *kubernetes.ClientSet for talking to a Kubernetes apiserver. If --kubeconfig is set, will use the kubeconfig file at that location. Otherwise will assume running in cluster and use the cluster provided kubeconfig.

Will log.Fatal if KubernetesInformers cannot be created

func GetKubernetesInformers

func GetKubernetesInformers() (informers.SharedInformerFactory, error)

GetKubernetesInformers creates a informers.SharedInformerFactory for talking to a Kubernetes apiserver. If --kubeconfig is set, will use the kubeconfig file at that location. Otherwise will assume running in cluster and use the cluster provided kubeconfig.

func GetKubernetesInformersOrDie

func GetKubernetesInformersOrDie() informers.SharedInformerFactory

GetKubernetesInformers creates a informers.SharedInformerFactory for talking to a Kubernetes apiserver. If --kubeconfig is set, will use the kubeconfig file at that location. Otherwise will assume running in cluster and use the cluster provided kubeconfig.

Will log.Fatal if KubernetesInformers cannot be created

Types

This section is empty.

Jump to

Keyboard shortcuts

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