restconfig

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clients

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

func ConfigureTestFramework

func ConfigureTestFramework(args []string) error

func ForBroker

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

Types

type Producer

type Producer struct {
	// contains filtered or unexported fields
}

func NewProducer

func NewProducer() Producer

func NewProducerFrom

func NewProducerFrom(kubeConfig, kubeContext string) Producer

func (*Producer) AddInClusterConfigFlag

func (rcp *Producer) AddInClusterConfigFlag(cmd *cobra.Command)

AddInClusterConfigFlag adds a flag enabling in-cluster configurations for processes running in pods.

func (*Producer) AddKubeConfigFlag

func (rcp *Producer) AddKubeConfigFlag(cmd *cobra.Command)

func (*Producer) AddKubeContextFlag

func (rcp *Producer) AddKubeContextFlag(cmd *cobra.Command)

AddKubeContextFlag adds a "kubeconfig" flag and a single "kubecontext" flag that can be used once and only once.

func (*Producer) AddKubeContextMultiFlag

func (rcp *Producer) AddKubeContextMultiFlag(cmd *cobra.Command, usage string)

AddKubeContextMultiFlag adds a "kubeconfig" flag and a "kubecontext" flag that can be specified multiple times (or comma separated).

func (*Producer) CheckVersionMismatch

func (rcp *Producer) CheckVersionMismatch(cmd *cobra.Command, args []string) error

func (*Producer) ClientConfig

func (rcp *Producer) ClientConfig() clientcmd.ClientConfig

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

func (*Producer) ClusterNameFromContext

func (rcp *Producer) ClusterNameFromContext() (*string, error)

func (*Producer) CountRequestedClusters

func (rcp *Producer) CountRequestedClusters() int

func (*Producer) ForCluster

func (rcp *Producer) ForCluster() (RestConfig, error)

func (*Producer) ForClusters

func (rcp *Producer) ForClusters() ([]RestConfig, error)

func (*Producer) GetClusterID

func (rcp *Producer) GetClusterID() (string, error)

func (*Producer) MustGetForClusters

func (rcp *Producer) MustGetForClusters() []RestConfig

func (*Producer) PopulateTestFramework

func (rcp *Producer) PopulateTestFramework()

type RestConfig

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

Jump to

Keyboard shortcuts

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