restconfig

package
v0.12.0-m0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfig

func ClientConfig(kubeConfigPath, kubeContext string) clientcmd.ClientConfig

ClientConfig returns a clientcmd.ClientConfig to use when communicating with K8s

func Clients

func Clients(config *rest.Config) (dynamic.Interface, kubernetes.Interface, error)

func ClusterNameFromContext

func ClusterNameFromContext(rawConfig api.Config, overridesContext string) *string

func ForBroker

func ForBroker(submariner *v1alpha1.Submariner, serviceDisc *v1alpha1.ServiceDiscovery) (*rest.Config, string, error)

func ForCluster

func ForCluster(kubeConfigPath, kubeContext string) (*rest.Config, error)

Types

type RestConfig

type RestConfig struct {
	Config      *rest.Config
	ClusterName string
}

func ForClusters

func ForClusters(kubeConfigPath string, kubeContexts []string) ([]RestConfig, error)

func MustGetForClusters

func MustGetForClusters(kubeConfigPath string, kubeContexts []string) []RestConfig

Jump to

Keyboard shortcuts

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