Documentation
¶
Index ¶
- Constants
- func CreateKubeconfigSecret(secretToolSet SecretToolSetInterface, kubeconfig *clientcmdapi.Config, ...) (*api.Secret, error)
- func DeleteKubeconfigSecret(secretToolSet SecretToolSetInterface, namespace string, name string) error
- func Write(config clientcmdapi.Config) ([]byte, error)
- type ClusterAnnotation
- type SecretToolSet
- type SecretToolSetInterface
Constants ¶
View Source
const (
KubeconfigSecretDataKey = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
func CreateKubeconfigSecret ¶
func CreateKubeconfigSecret(secretToolSet SecretToolSetInterface, kubeconfig *clientcmdapi.Config, namespace, name, federationName, clusterName string, dryRun bool) (*api.Secret, error)
func DeleteKubeconfigSecret ¶
func DeleteKubeconfigSecret(secretToolSet SecretToolSetInterface, namespace string, name string) error
func Write ¶
func Write(config clientcmdapi.Config) ([]byte, error)
Types ¶
type ClusterAnnotation ¶
This will be used by Provider APIs in kubeprovider.go to return Annotations that need to be created or deleted. Currently, this is only being used by ScaleKubeClusterUp, ScaleKubeClusterDown and ValidateKubeCluster
func (*ClusterAnnotation) ApplyAnnotation ¶
func (ca *ClusterAnnotation) ApplyAnnotation(annotations map[string]string)
func (*ClusterAnnotation) DeleteAnnotation ¶
func (ca *ClusterAnnotation) DeleteAnnotation(key string)
func (*ClusterAnnotation) SetAnnotation ¶
func (ca *ClusterAnnotation) SetAnnotation(key string, value string)
Source Files
¶
- cluster_annotation.go
- secret.go
- secret_toolset.go
Click to show internal directories.
Click to hide internal directories.