Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeconfigBuilder ¶
type KubeconfigBuilder struct { Server string Context string Namespace string KubeBearerToken string KubeUser string KubePassword string CACert []byte ClientCert []byte ClientKey []byte // contains filtered or unexported fields }
KubeconfigBuilder builds a kubecfg file This logic previously lives in the bash scripts (create-kubeconfig in cluster/common.sh)
func BuildKubecfg ¶
func BuildKubecfg(cluster *kops.Cluster, keyStore fi.Keystore, secretStore fi.SecretStore, status kops.StatusStore, configAccess clientcmd.ConfigAccess) (*KubeconfigBuilder, error)
func NewKubeconfigBuilder ¶
func NewKubeconfigBuilder(configAccess clientcmd.ConfigAccess) *KubeconfigBuilder
Create new KubeconfigBuilder
func (*KubeconfigBuilder) BuildRestConfig ¶
func (c *KubeconfigBuilder) BuildRestConfig() (*rest.Config, error)
Create new Rest Client
func (*KubeconfigBuilder) DeleteKubeConfig ¶
func (b *KubeconfigBuilder) DeleteKubeConfig() error
func (*KubeconfigBuilder) WriteKubecfg ¶
func (b *KubeconfigBuilder) WriteKubecfg() 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.