Documentation ¶
Index ¶
- Constants
- func AvailabilityZones() ([]string, error)
- func CleanUpObsoleteEksClusterStack(clusterName string, profile string, region string) error
- func CreateS3Bucket(bucketName string, profile string, region string) (string, error)
- func EksClusterExists(clusterName string, profile string, region string) (bool, error)
- func EksClusterObsoleteStackExists(clusterName string, profile string, region string) (bool, error)
- func EksctlStackName(clusterName string) string
- func GetAccountIDAndRegion(profile string, region string) (string, string, error)
- func GetContainerRegistryHost() (string, error)
- func GetRegionFromContainerRegistryHost(kubeClient kubernetes.Interface, namespace string, dockerRegistry string) string
- func LazyCreateRegistry(kube kubernetes.Interface, namespace string, region string, ...) error
- func NewAwsSession(profileOption string, regionOption string) (*session.Session, error)
- func NewAwsSessionWithoutOptions() (*session.Session, error)
- func RegisterAwsCustomDomain(customDomain string, elbAddress string) error
- func ResolveRegion(profileOption string, regionOption string) (string, error)
- func ResolveRegionWithoutOptions() (string, error)
- func UserHomeDir() string
Constants ¶
const DefaultRegion = "us-west-2"
Variables ¶
This section is empty.
Functions ¶
func AvailabilityZones ¶
func CreateS3Bucket ¶
CreateS3Bucket creates a new S3 bucket in the default region with the given bucket name returning the location string
func EksClusterExists ¶
func EksClusterObsoleteStackExists ¶
* If EKS cluster creation process is interrupted, there will be CloudFormation stack in ROLLBACK_COMPLETE state left. Such dead stack prevents eksctl from creating cluster with the same name. This is common activity then to remove stacks like this and this function performs this action.
func EksctlStackName ¶
func GetAccountIDAndRegion ¶
GetAccountID returns the current account ID
func GetContainerRegistryHost ¶
GetContainerRegistryHost
func GetRegionFromContainerRegistryHost ¶
func GetRegionFromContainerRegistryHost(kubeClient kubernetes.Interface, namespace string, dockerRegistry string) string
Deprecated!
This function is kept for backwards compatibility. AWS region should not be resolved from ECR address, but read from ConfigMap (see RememberRegion function). To keep backwards compatibility with existing installations this function will be kept for a while and it will perform migration to config map. Eventually it will be removed from a codebase.
func LazyCreateRegistry ¶
func LazyCreateRegistry(kube kubernetes.Interface, namespace string, region string, dockerRegistry string, orgName string, appName string) error
LazyCreateRegistry lazily creates the ECR registry if it does not already exist
func NewAwsSession ¶
func RegisterAwsCustomDomain ¶
RegisterAwsCustomDomain registers a wildcard ALIAS for the custom domain to point at the given ELB host name
func UserHomeDir ¶
func UserHomeDir() string
UserHomeDir returns the home directory for the user the process is running under. This is a copy of shareddefaults.UserHomeDir in the internal AWS package. We can't user user.Current().HomeDir as we want to override this during testing. :-|
Types ¶
This section is empty.