key

package
v0.0.0-...-17b5b8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 AutoScalingGroupName(customObject v1alpha1.AWSConfig, groupName string) string

func AvailabilityZone

func AvailabilityZone(customObject v1alpha1.AWSConfig) string

func BucketName

func BucketName(customObject v1alpha1.AWSConfig, accountID string) string

func BucketObjectName

func BucketObjectName(templateVersion string, prefix string) string

func CloudConfigSmallTemplates

func CloudConfigSmallTemplates() []string

func CloudFormationGuestTemplates

func CloudFormationGuestTemplates() []string

func CloudFormationHostPostTemplates

func CloudFormationHostPostTemplates() []string

func CloudFormationHostPreTemplates

func CloudFormationHostPreTemplates() []string

func ClusterAPIEndpoint

func ClusterAPIEndpoint(customObject v1alpha1.AWSConfig) string

func ClusterCloudProviderTag

func ClusterCloudProviderTag(customObject v1alpha1.AWSConfig) string

func ClusterCustomer

func ClusterCustomer(customObject v1alpha1.AWSConfig) string

func ClusterID

func ClusterID(customObject v1alpha1.AWSConfig) string

func ClusterNamespace

func ClusterNamespace(customObject v1alpha1.AWSConfig) string

func ClusterOrganization

func ClusterOrganization(customObject v1alpha1.AWSConfig) string

ClusterOrganization returns the org name from the custom object. It uses ClusterCustomer until this field is renamed in the custom object.

func ClusterTags

func ClusterTags(customObject v1alpha1.AWSConfig, installationName string) map[string]string

func ClusterVersion

func ClusterVersion(customObject v1alpha1.AWSConfig) string

func CustomerID

func CustomerID(customObject v1alpha1.AWSConfig) string

func ImageID

func ImageID(customObject v1alpha1.AWSConfig) (string, error)

ImageID returns the EC2 AMI for the configured region.

func IngressControllerInsecurePort

func IngressControllerInsecurePort(customObject v1alpha1.AWSConfig) int

func IngressControllerSecurePort

func IngressControllerSecurePort(customObject v1alpha1.AWSConfig) int

func InstanceProfileName

func InstanceProfileName(customObject v1alpha1.AWSConfig, profileType string) string

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsMalformedCloudConfigKey

func IsMalformedCloudConfigKey(err error) bool

IsMalformedCloudConfigKey asserts malformedCloudConfigKeyError.

func IsMissingCloudConfigKey

func IsMissingCloudConfigKey(err error) bool

IsMissingCloudConfigKey asserts missingCloudConfigKeyError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func KubernetesAPISecurePort

func KubernetesAPISecurePort(customObject v1alpha1.AWSConfig) int

func LoadBalancerName

func LoadBalancerName(domainName string, cluster v1alpha1.AWSConfig) (string, error)

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 MainGuestStackName(customObject v1alpha1.AWSConfig) string

func MainHostPostStackName

func MainHostPostStackName(customObject v1alpha1.AWSConfig) string

func MainHostPreStackName

func MainHostPreStackName(customObject v1alpha1.AWSConfig) string

func MasterCount

func MasterCount(customObject v1alpha1.AWSConfig) int

func MasterImageID

func MasterImageID(customObject v1alpha1.AWSConfig) string

func MasterInstanceName

func MasterInstanceName(customObject v1alpha1.AWSConfig) string

func MasterInstanceType

func MasterInstanceType(customObject v1alpha1.AWSConfig) string

func PeerAccessRoleName

func PeerAccessRoleName(customObject v1alpha1.AWSConfig) string

func PeerID

func PeerID(customObject v1alpha1.AWSConfig) string

func PolicyName

func PolicyName(customObject v1alpha1.AWSConfig, profileType string) string

func PrivateSubnetCIDR

func PrivateSubnetCIDR(customObject v1alpha1.AWSConfig) string

func Region

func Region(customObject v1alpha1.AWSConfig) string

func RoleName

func RoleName(customObject v1alpha1.AWSConfig, profileType string) string

func RouteTableName

func RouteTableName(customObject v1alpha1.AWSConfig, suffix string) string

func SecurityGroupName

func SecurityGroupName(customObject v1alpha1.AWSConfig, groupName string) string

func SubnetName

func SubnetName(customObject v1alpha1.AWSConfig, suffix string) string

func ToCustomObject

func ToCustomObject(v interface{}) (v1alpha1.AWSConfig, error)

func VersionBundleVersion

func VersionBundleVersion(customObject v1alpha1.AWSConfig) string

VersionBundleVersion returns the version contained in the Version Bundle.

func WorkerCount

func WorkerCount(customObject v1alpha1.AWSConfig) int

func WorkerImageID

func WorkerImageID(customObject v1alpha1.AWSConfig) string

func WorkerInstanceType

func WorkerInstanceType(customObject v1alpha1.AWSConfig) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL