Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSSHIdentity ¶
func AddSSHIdentity(sshConfig *ssh.ClientConfig, p string) error
func GetInstanceUserData ¶
Fetch instance UserData
func UserDataToString ¶
Types ¶
type ConvertKubeupCluster ¶
type ConvertKubeupCluster struct {
OldClusterName string
NewClusterName string
Cloud fi.Cloud
Clientset simple.Clientset
ClusterConfig *api.Cluster
InstanceGroups []*api.InstanceGroup
// Channel is the channel that we are upgrading to
Channel *api.Channel
}
ConvertKubeupCluster performs a conversion of a cluster that was imported from kube-up
type ImportCluster ¶
ImportCluster tries to reverse engineer an existing k8s cluster, adding it to the cluster registry
func (*ImportCluster) ImportAWSCluster ¶
func (x *ImportCluster) ImportAWSCluster(ctx context.Context) error
type Kubectl ¶
type Kubectl struct {
KubectlPath string
}
func (*Kubectl) Apply ¶ added in v1.10.0
Apply calls kubectl apply to apply the manifest. We will likely in future change this to create things directly (or more likely embed this logic into kubectl itself)
func (*Kubectl) GetConfig ¶
func (k *Kubectl) GetConfig(minify bool) (*kubeconfig.KubectlConfig, error)
func (*Kubectl) GetCurrentContext ¶
type NodeSSH ¶
type NodeSSH struct {
Hostname string
SSHConfig ssh.ClientConfig
// contains filtered or unexported fields
}
type UserDataConfiguration ¶
func ParseUserDataConfiguration ¶
func ParseUserDataConfiguration(raw []byte) (*UserDataConfiguration, error)
func (*UserDataConfiguration) ParseBool ¶
func (u *UserDataConfiguration) ParseBool(key string) *bool
func (*UserDataConfiguration) ParseCert ¶
func (u *UserDataConfiguration) ParseCert(key string) (*pki.Certificate, error)
func (*UserDataConfiguration) ParseKey ¶
func (u *UserDataConfiguration) ParseKey(key string) (*pki.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.