Documentation ¶
Index ¶
- Constants
- func AWSCliContainerRegistry(customObject v1alpha1.AWSConfig) string
- func AutoScalingGroupName(customObject v1alpha1.AWSConfig, groupName string) string
- func AvailabilityZone(customObject v1alpha1.AWSConfig) string
- func BaseDomain(customObject v1alpha1.AWSConfig) string
- func BucketName(customObject v1alpha1.AWSConfig, accountID string) string
- func BucketObjectName(customObject v1alpha1.AWSConfig, role string) string
- func CIDR(customObject v1alpha1.AWSConfig) string
- func CloudConfigSmallTemplates() []string
- func CloudFormationGuestTemplates() []string
- func ClusterAPIEndpoint(customObject v1alpha1.AWSConfig) string
- func ClusterCloudProviderTag(customObject v1alpha1.AWSConfig) string
- func ClusterCustomer(customObject v1alpha1.AWSConfig) string
- func ClusterEtcdDomain(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 CredentialName(customObject v1alpha1.AWSConfig) string
- func CredentialNamespace(customObject v1alpha1.AWSConfig) string
- func CustomerID(customObject v1alpha1.AWSConfig) string
- func DockerVolumeName(customObject v1alpha1.AWSConfig) string
- func DockerVolumeResourceName(customObject v1alpha1.AWSConfig) string
- func EC2ServiceDomain(customObject v1alpha1.AWSConfig) string
- func EtcdDomain(customObject v1alpha1.AWSConfig) string
- func EtcdPort(customObject v1alpha1.AWSConfig) int
- func EtcdVolumeName(customObject v1alpha1.AWSConfig) string
- func HostedZoneNameAPI(customObject v1alpha1.AWSConfig) string
- func HostedZoneNameEtcd(customObject v1alpha1.AWSConfig) string
- func HostedZoneNameIngress(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 InternalLoadBalancerName(domainName string, cluster v1alpha1.AWSConfig) (string, error)
- func IsChinaRegion(customObject v1alpha1.AWSConfig) bool
- func IsDeleted(customObject v1alpha1.AWSConfig) bool
- 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 LogVolumeName(customObject v1alpha1.AWSConfig) string
- 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 MasterInstanceResourceName(customObject v1alpha1.AWSConfig) string
- func MasterInstanceType(customObject v1alpha1.AWSConfig) string
- func MasterRoleARN(customObject v1alpha1.AWSConfig, accountID string) string
- func NATEIPName(idx int) string
- func NATGatewayName(idx int) string
- func NATRouteName(idx int) string
- func PeerAccessRoleName(customObject v1alpha1.AWSConfig) string
- func PolicyName(customObject v1alpha1.AWSConfig, profileType string) string
- func PrivateRouteTableName(idx int) string
- func PrivateSubnetCIDR(customObject v1alpha1.AWSConfig) string
- func PrivateSubnetName(idx int) string
- func PrivateSubnetRouteTableAssociationName(idx int) string
- func PublicRouteTableName(idx int) string
- func PublicSubnetCIDR(customObject v1alpha1.AWSConfig) string
- func PublicSubnetName(idx int) string
- func PublicSubnetRouteTableAssociationName(idx int) string
- func Region(customObject v1alpha1.AWSConfig) string
- func RegionARN(customObject v1alpha1.AWSConfig) string
- func RoleName(customObject v1alpha1.AWSConfig, profileType string) string
- func RouteTableName(customObject v1alpha1.AWSConfig, suffix string, idx int) string
- func S3ServiceDomain(customObject v1alpha1.AWSConfig) string
- func ScalingMax(customObject v1alpha1.AWSConfig) int
- func ScalingMin(customObject v1alpha1.AWSConfig) int
- func SecurityGroupName(customObject v1alpha1.AWSConfig, groupName string) string
- func SmallCloudConfigPath(customObject v1alpha1.AWSConfig, accountID string, role string) string
- func SmallCloudConfigS3HTTPURL(customObject v1alpha1.AWSConfig, accountID string, role string) string
- func SmallCloudConfigS3URL(customObject v1alpha1.AWSConfig, accountID string, role string) string
- func SpecAvailabilityZones(customObject v1alpha1.AWSConfig) int
- func StatusAvailabilityZones(customObject v1alpha1.AWSConfig) []v1alpha1.AWSConfigStatusAWSAvailabilityZone
- func StatusClusterNetworkCIDR(cluster v1alpha2.AWSCluster) string
- func StatusNetworkCIDR(customObject v1alpha1.AWSConfig) string
- func StatusScalingDesiredCapacity(customObject v1alpha1.AWSConfig) int
- func SubnetName(customObject v1alpha1.AWSConfig, suffix string) string
- func TargetLogBucketName(customObject v1alpha1.AWSConfig) string
- func ToClusterEndpoint(v interface{}) (string, error)
- func ToClusterID(v interface{}) (string, error)
- func ToClusterStatus(v interface{}) (v1alpha1.StatusCluster, error)
- func ToCustomObject(v interface{}) (v1alpha1.AWSConfig, error)
- func ToNodeCount(v interface{}) (int, error)
- func ToVersionBundleVersion(v interface{}) (string, error)
- func VPCPeeringRouteName(idx int) string
- func VersionBundleVersion(customObject v1alpha1.AWSConfig) string
- func VersionLabelSelector(enabled bool, overridenVersion string) string
- func WorkerCount(customObject v1alpha1.AWSConfig) int
- func WorkerDockerVolumeSizeGB(customObject v1alpha1.AWSConfig) string
- func WorkerImageID(customObject v1alpha1.AWSConfig) string
- func WorkerInstanceType(customObject v1alpha1.AWSConfig) string
- func WorkerRoleARN(customObject v1alpha1.AWSConfig, accountID string) string
Constants ¶
const ( // CloudConfigVersion defines the version of k8scloudconfig in use. // It is used in the main stack output and S3 object paths. CloudConfigVersion = "v_5_0_0" // 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" // EnableTerminationProtection is used to protect the CF stacks from deletion. EnableTerminationProtection = true // 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" // LogDeliveryURI is used for setting the correct ACL in the access log bucket LogDeliveryURI = "uri=http://acs.amazonaws.com/groups/s3/LogDelivery" InstanceIDAnnotation = "aws-operator.giantswarm.io/instance" )
const ( DockerVolumeResourceNameKey = "DockerVolumeResourceName" MasterImageIDKey = "MasterImageID" MasterInstanceResourceNameKey = "MasterInstanceResourceName" MasterInstanceTypeKey = "MasterInstanceType" MasterInstanceMonitoring = "Monitoring" MasterCloudConfigVersionKey = "MasterCloudConfigVersion" VersionBundleVersionKey = "VersionBundleVersion" WorkerCountKey = "WorkerCount" WorkerMaxKey = "WorkerMax" WorkerMinKey = "WorkerMin" WorkerDockerVolumeSizeKey = "WorkerDockerVolumeSizeGB" WorkerImageIDKey = "WorkerImageID" WorkerInstanceMonitoring = "Monitoring" WorkerInstanceTypeKey = "WorkerInstanceType" WorkerCloudConfigVersionKey = "WorkerCloudConfigVersion" )
const ( ClusterIDLabel = "giantswarm.io/cluster" AnnotationEtcdDomain = "giantswarm.io/etcd-domain" AnnotationPrometheusCluster = "giantswarm.io/prometheus-cluster" LabelApp = "app" LabelCluster = "giantswarm.io/cluster" LabelCustomer = "customer" LabelOrganization = "giantswarm.io/organization" LabelVersionBundle = "giantswarm.io/version-bundle" LegacyLabelCluster = "cluster" )
const ( NodeDrainerLifecycleHookName = "NodeDrainer" WorkerASGRef = "workerAutoScalingGroup" )
const ( KindMaster = "master" KindIngress = "ingress" KindWorker = "worker" KindEtcd = "etcd-elb" KindInternalAPI = "internal-api" )
const (
TagCluster = "giantswarm.io/cluster"
)
Variables ¶
This section is empty.
Functions ¶
func AWSCliContainerRegistry ¶
func AutoScalingGroupName ¶
func AvailabilityZone ¶
func BaseDomain ¶
func BucketObjectName ¶
BucketObjectName computes the S3 object path to the actual cloud config.
/version/3.4.0/cloudconfig/v_3_2_5/master /version/3.4.0/cloudconfig/v_3_2_5/worker
func CloudConfigSmallTemplates ¶
func CloudConfigSmallTemplates() []string
func CloudFormationGuestTemplates ¶
func CloudFormationGuestTemplates() []string
func ClusterAPIEndpoint ¶
func ClusterCloudProviderTag ¶
func ClusterCustomer ¶
func ClusterEtcdDomain ¶
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 CredentialName ¶
func CredentialNamespace ¶
func CustomerID ¶
func DockerVolumeName ¶
func EC2ServiceDomain ¶
func EtcdDomain ¶
func EtcdVolumeName ¶
func HostedZoneNameAPI ¶
func HostedZoneNameEtcd ¶
func HostedZoneNameIngress ¶
func InstanceProfileName ¶
func IsChinaRegion ¶
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 LogVolumeName ¶
func MainGuestStackName ¶
func MainHostPostStackName ¶
func MainHostPreStackName ¶
func MasterCount ¶
func MasterImageID ¶
func MasterInstanceName ¶
func MasterInstanceType ¶
func NATEIPName ¶
func NATGatewayName ¶
func NATRouteName ¶
func PeerAccessRoleName ¶
func PrivateRouteTableName ¶
func PrivateSubnetCIDR ¶
func PrivateSubnetName ¶
func PublicRouteTableName ¶
func PublicSubnetCIDR ¶
func PublicSubnetName ¶
func RouteTableName ¶
func S3ServiceDomain ¶
func ScalingMax ¶
func ScalingMin ¶
func SecurityGroupName ¶
func SmallCloudConfigPath ¶
func SmallCloudConfigS3URL ¶
func SpecAvailabilityZones ¶
func StatusAvailabilityZones ¶
func StatusAvailabilityZones(customObject v1alpha1.AWSConfig) []v1alpha1.AWSConfigStatusAWSAvailabilityZone
func StatusClusterNetworkCIDR ¶
func StatusClusterNetworkCIDR(cluster v1alpha2.AWSCluster) string
StatusClusterNetworkCIDR returns the allocated tenant cluster subnet CIDR.
func StatusNetworkCIDR ¶
StatusNetworkCIDR returns the allocated tenant cluster subnet CIDR.
func TargetLogBucketName ¶
func ToClusterEndpoint ¶
func ToClusterID ¶
func ToClusterStatus ¶
func ToClusterStatus(v interface{}) (v1alpha1.StatusCluster, error)
func ToCustomObject ¶
func ToNodeCount ¶
func ToVersionBundleVersion ¶
func VPCPeeringRouteName ¶
func VersionBundleVersion ¶
VersionBundleVersion returns the version contained in the Version Bundle.
func VersionLabelSelector ¶
func WorkerCount ¶
func WorkerDockerVolumeSizeGB ¶
WorkerDockerVolumeSizeGB returns size of a docker volume configured for worker nodes. If there are no workers in custom object, 0 is returned as size.
func WorkerImageID ¶
func WorkerInstanceType ¶
Types ¶
This section is empty.