Documentation ¶
Index ¶
- func EnsureInstanceProfile(svc *iamv2.Client, instanceProfileName string, roleName string) error
- func EnsureRole(svc *iamv2.Client, roleName string) error
- func FetchConfigureScript(userDataFile string, replace func(string) string) (string, error)
- func FetchKubeadmInitYaml(kubeadmInitFile string, replace func(string) string) (string, error)
- func FetchKubeadmJoinYaml(kubeadmJoinFile string, replace func(string) string) (string, error)
- func FetchRunKubeadmSH(replace func(string) string) (string, error)
- func FetchRunPostInstallSH(replace func(string) string) (string, error)
- func GetInstanceProfileArn(svc *iamv2.Client, instanceProfileName string) (string, error)
- func GetSSMImage(ssmService *ssmv2.Client, path string) (string, error)
- func LaunchNewInstance(ec2Service *ec2v2.Client, iamService *iamv2.Client, clusterID string, ...) (*ec2typesv2.Instance, error)
- func LocalSSHKeyExists(keyPrefix string) bool
- func PickSubnetID(svc *ec2v2.Client) (string, string, error)
- func RandomFixedLengthString(length int) string
- func RandomHexEncodedBytes(n int) string
- func SourceVersion(kubeRoot string) (string, error)
- func ValidateS3Bucket(s3Service *s3v2.Client, stageLocation string, stageVersion string, ...) error
- func WaitForInstanceToRun(ec2Service *ec2v2.Client, instance *ec2typesv2.Instance) *ec2typesv2.Instance
- type InternalAWSImage
- type TemporarySSHKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureInstanceProfile ¶
func FetchConfigureScript ¶
func FetchKubeadmInitYaml ¶
func FetchKubeadmJoinYaml ¶
func FetchRunPostInstallSH ¶
func GetInstanceProfileArn ¶
func LaunchNewInstance ¶
func LocalSSHKeyExists ¶
func RandomFixedLengthString ¶
func RandomHexEncodedBytes ¶
func SourceVersion ¶
SourceVersion the kubernetes git version based on hack/print-workspace-status.sh the raw version is also returned
func ValidateS3Bucket ¶
func WaitForInstanceToRun ¶
func WaitForInstanceToRun(ec2Service *ec2v2.Client, instance *ec2typesv2.Instance) *ec2typesv2.Instance
Types ¶
type InternalAWSImage ¶
type TemporarySSHKey ¶
type TemporarySSHKey struct { Public []byte Private []byte Signer ssh.Signer PrivateKeyPath string }
func GenerateSSHKeypair ¶
func GenerateSSHKeypair() (*TemporarySSHKey, error)
func LoadExistingSSHKey ¶
func LoadExistingSSHKey(keyPrefix string) (*TemporarySSHKey, error)
Click to show internal directories.
Click to hide internal directories.