Documentation ¶
Index ¶
- Constants
- func AutoScalingGroupName(customObject v1alpha1.AWSConfig, groupName string) string
- func AvailabilityZone(customObject v1alpha1.AWSConfig) string
- func BucketName(customObject v1alpha1.AWSConfig, accountID string) string
- func BucketObjectName(templateVersion string, prefix string) string
- func CloudConfigSmallTemplates() []string
- func CloudFormationGuestTemplates() []string
- func CloudFormationHostPostTemplates() []string
- func CloudFormationHostPreTemplates() []string
- func ClusterAPIEndpoint(customObject v1alpha1.AWSConfig) string
- func ClusterCloudProviderTag(customObject v1alpha1.AWSConfig) string
- func ClusterCustomer(customObject v1alpha1.AWSConfig) string
- func ClusterID(customObject v1alpha1.AWSConfig) string
- func ClusterNamespace(customObject v1alpha1.AWSConfig) string
- func ClusterOrganization(customObject v1alpha1.AWSConfig) string
- func ClusterTags(customObject v1alpha1.AWSConfig, installationName string) map[string]string
- func ClusterVersion(customObject v1alpha1.AWSConfig) string
- func CustomerID(customObject v1alpha1.AWSConfig) string
- func ImageID(customObject v1alpha1.AWSConfig) (string, error)
- func IngressControllerInsecurePort(customObject v1alpha1.AWSConfig) int
- func IngressControllerSecurePort(customObject v1alpha1.AWSConfig) int
- func InstanceProfileName(customObject v1alpha1.AWSConfig, profileType string) string
- func IsInvalidConfig(err error) bool
- func IsMalformedCloudConfigKey(err error) bool
- func IsMissingCloudConfigKey(err error) bool
- func IsNotFound(err error) bool
- func IsWrongTypeError(err error) bool
- func KubernetesAPISecurePort(customObject v1alpha1.AWSConfig) int
- func LoadBalancerName(domainName string, cluster v1alpha1.AWSConfig) (string, error)
- func MainGuestStackName(customObject v1alpha1.AWSConfig) string
- func MainHostPostStackName(customObject v1alpha1.AWSConfig) string
- func MainHostPreStackName(customObject v1alpha1.AWSConfig) string
- func MasterCount(customObject v1alpha1.AWSConfig) int
- func MasterImageID(customObject v1alpha1.AWSConfig) string
- func MasterInstanceName(customObject v1alpha1.AWSConfig) string
- func MasterInstanceType(customObject v1alpha1.AWSConfig) string
- func PeerAccessRoleName(customObject v1alpha1.AWSConfig) string
- func PeerID(customObject v1alpha1.AWSConfig) string
- func PolicyName(customObject v1alpha1.AWSConfig, profileType string) string
- func PrivateSubnetCIDR(customObject v1alpha1.AWSConfig) string
- func Region(customObject v1alpha1.AWSConfig) string
- func RoleName(customObject v1alpha1.AWSConfig, profileType string) string
- func RouteTableName(customObject v1alpha1.AWSConfig, suffix string) string
- func SecurityGroupName(customObject v1alpha1.AWSConfig, groupName string) string
- func SubnetName(customObject v1alpha1.AWSConfig, suffix string) string
- func ToCustomObject(v interface{}) (v1alpha1.AWSConfig, error)
- func VersionBundleVersion(customObject v1alpha1.AWSConfig) string
- func WorkerCount(customObject v1alpha1.AWSConfig) int
- func WorkerImageID(customObject v1alpha1.AWSConfig) string
- func WorkerInstanceType(customObject v1alpha1.AWSConfig) string
Constants ¶
View Source
const ( // CloudProviderTagName is used to add Cloud Provider tags to AWS resources. CloudProviderTagName = "kubernetes.io/cluster/%s" // Cluster tag name for tagging all resources helping cost analysis in AWS. ClusterTagName = "giantswarm.io/cluster" // CloudProviderTagOwnedValue is used to indicate an AWS resource is owned // and managed by a cluster. CloudProviderTagOwnedValue = "owned" // InstallationTagName is used for AWS resource tagging. InstallationTagName = "giantswarm.io/installation" // OrganizationTagName is used for AWS resource tagging. OrganizationTagName = "giantswarm.io/organization" // ProfileNameTemplate will be included in the IAM instance profile name. ProfileNameTemplate = "EC2-K8S-Role" // RoleNameTemplate will be included in the IAM role name. RoleNameTemplate = "EC2-K8S-Role" // PolicyNameTemplate will be included in the IAM policy name. PolicyNameTemplate = "EC2-K8S-Policy" )
View Source
const ( MasterImageIDKey = "MasterImageID" MasterInstanceTypeKey = "MasterInstanceType" MasterCloudConfigVersionKey = "MasterCloudConfigVersion" WorkerASGKey = "WorkerASGName" WorkerCountKey = "WorkerCount" WorkerImageIDKey = "WorkerImageID" WorkerInstanceTypeKey = "WorkerInstanceType" WorkerCloudConfigVersionKey = "WorkerCloudConfigVersion" VersionBundleVersionKey = "VersionBundleVersion" )
View Source
const ( NodeDrainerLifecycleHookName = "NodeDrainer" WorkerASGRef = "workerAutoScalingGroup" )
View Source
const (
ClusterIDLabel = "giantswarm.io/cluster"
)
View Source
const (
InstanceIDAnnotation = "aws-operator.giantswarm.io/instance"
)
Variables ¶
This section is empty.
Functions ¶
func AutoScalingGroupName ¶
func AvailabilityZone ¶
func BucketObjectName ¶
func CloudConfigSmallTemplates ¶
func CloudConfigSmallTemplates() []string
func CloudFormationGuestTemplates ¶
func CloudFormationGuestTemplates() []string
func CloudFormationHostPostTemplates ¶
func CloudFormationHostPostTemplates() []string
func CloudFormationHostPreTemplates ¶
func CloudFormationHostPreTemplates() []string
func ClusterAPIEndpoint ¶
func ClusterCloudProviderTag ¶
func ClusterCustomer ¶
func ClusterNamespace ¶
func ClusterOrganization ¶
ClusterOrganization returns the org name from the custom object. It uses ClusterCustomer until this field is renamed in the custom object.
func ClusterTags ¶
func ClusterVersion ¶
func CustomerID ¶
func InstanceProfileName ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsMalformedCloudConfigKey ¶
IsMalformedCloudConfigKey asserts malformedCloudConfigKeyError.
func IsMissingCloudConfigKey ¶
IsMissingCloudConfigKey asserts missingCloudConfigKeyError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func KubernetesAPISecurePort ¶
func LoadBalancerName ¶
LoadBalancerName produces a unique name for the load balancer. It takes the domain name, extracts the first subdomain, and combines it with the cluster name.
func MainGuestStackName ¶
func MainHostPostStackName ¶
func MainHostPreStackName ¶
func MasterCount ¶
func MasterImageID ¶
func MasterInstanceName ¶
func MasterInstanceType ¶
func PeerAccessRoleName ¶
func PrivateSubnetCIDR ¶
func SecurityGroupName ¶
func ToCustomObject ¶
func VersionBundleVersion ¶
VersionBundleVersion returns the version contained in the Version Bundle.
func WorkerCount ¶
func WorkerImageID ¶
func WorkerInstanceType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.