Documentation ¶
Overview ¶
The config package contains libraries for initializing rest configs for talking to the Kubernetes API
Index ¶
- func GetConfig() (*rest.Config, error)
- func GetConfigOrDie() *rest.Config
- func GetKubernetesClientSet() (*kubernetes.Clientset, error)
- func GetKubernetesClientSetOrDie() (*kubernetes.Clientset, error)
- func GetKubernetesInformers() (informers.SharedInformerFactory, error)
- func GetKubernetesInformersOrDie() informers.SharedInformerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
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 ¶
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.