Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSecretNotFound = errors.New("secret not found") ErrSecretMissingValue = errors.New("missing value in secret") )
Functions ¶
func GetKubeConfigSecret ¶
GetKubeConfigSecret retrieves the KubeConfig Secret (if any) from the given cluster name and namespace.
func KubeConfigFromSecret ¶
KubeConfigFromSecret uses the Secret to retrieve the KubeConfig.
func KubeConfigSecretName ¶
KubeConfigSecretName generates the expected name for the Kubeconfig secret to access a remote cluster given the cluster's name.
Types ¶
type ClusterClient ¶
type ClusterClient interface { RESTConfig() *restclient.Config CoreV1() (corev1.CoreV1Interface, error) }
ClusterClient is an interface encapsulating methods to access a remote cluster.
func NewClusterClient ¶
NewClusterClient creates a new ClusterClient.
Click to show internal directories.
Click to hide internal directories.