Documentation ¶
Index ¶
- func ClientConfig(kubeConfigPath, kubeContext string) clientcmd.ClientConfig
- func Clients(config *rest.Config) (dynamic.Interface, kubernetes.Interface, error)
- func ClusterNameFromContext(rawConfig api.Config, overridesContext string) *string
- func ForBroker(submariner *v1alpha1.Submariner, serviceDisc *v1alpha1.ServiceDiscovery) (*rest.Config, string, error)
- func ForCluster(kubeConfigPath, kubeContext string) (*rest.Config, error)
- type RestConfig
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 ClusterNameFromContext ¶
func ForBroker ¶
func ForBroker(submariner *v1alpha1.Submariner, serviceDisc *v1alpha1.ServiceDiscovery) (*rest.Config, string, error)
Types ¶
type RestConfig ¶
func ForClusters ¶
func ForClusters(kubeConfigPath string, kubeContexts []string) ([]RestConfig, error)
func MustGetForClusters ¶
func MustGetForClusters(kubeConfigPath string, kubeContexts []string) []RestConfig
Click to show internal directories.
Click to hide internal directories.