Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultKubecfgAdminLifetime = 18 * time.Hour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeconfigBuilder ¶
type KubeconfigBuilder struct { Server string TLSServerName string Context string Namespace string User string KubeUser string KubePassword string CACerts []byte ClientCert []byte ClientKey []byte AuthenticationExec []string }
KubeconfigBuilder builds a kubecfg file This logic previously lives in the bash scripts (create-kubeconfig in cluster/common.sh)
func BuildKubecfg ¶
func NewKubeconfigBuilder ¶
func NewKubeconfigBuilder() *KubeconfigBuilder
Create new KubeconfigBuilder
func (*KubeconfigBuilder) DeleteKubeConfig ¶
func (b *KubeconfigBuilder) DeleteKubeConfig(configAccess clientcmd.ConfigAccess) error
func (*KubeconfigBuilder) WriteKubecfg ¶
func (b *KubeconfigBuilder) WriteKubecfg(configAccess clientcmd.ConfigAccess) error
Write out a new kubeconfig
type KubectlCluster ¶
type KubectlClusterWithName ¶
type KubectlClusterWithName struct { Name string `json:"name"` Cluster KubectlCluster `json:"cluster"` }
type KubectlConfig ¶
type KubectlConfig struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` CurrentContext string `json:"current-context"` Clusters []*KubectlClusterWithName `json:"clusters"` Contexts []*KubectlContextWithName `json:"contexts"` Users []*KubectlUserWithName `json:"users"` }
type KubectlContext ¶
type KubectlContextWithName ¶
type KubectlContextWithName struct { Name string `json:"name"` Context KubectlContext `json:"context"` }
type KubectlUser ¶
type KubectlUserWithName ¶
type KubectlUserWithName struct { Name string `json:"name"` User KubectlUser `json:"user"` }
Click to show internal directories.
Click to hide internal directories.