Documentation ¶
Index ¶
- Constants
- Variables
- func AWSTags(getter LabelsGetter, installationName string) map[string]string
- func BucketName(getter LabelsGetter, accountID string) string
- func BucketObjectName(getter LabelsGetter, role string) string
- func CloudConfigSmallTemplates() []string
- func CloudFormationGuestTemplates() []string
- func ClusterAPIEndpoint(cluster v1alpha1.Cluster) string
- func ClusterBaseDomain(cluster v1alpha1.Cluster) string
- func ClusterCloudProviderTag(getter LabelsGetter) string
- func ClusterEtcdEndpoint(cluster v1alpha1.Cluster) string
- func ClusterEtcdEndpointWithPort(cluster v1alpha1.Cluster) string
- func ClusterID(getter LabelsGetter) string
- func ClusterKubeletEndpoint(cluster v1alpha1.Cluster) string
- func ClusterNamespace(cluster v1alpha1.Cluster) string
- func CredentialName(cluster v1alpha1.Cluster) string
- func CredentialNamespace(cluster v1alpha1.Cluster) string
- func DockerVolumeResourceName(cluster v1alpha1.Cluster) string
- func EC2ServiceDomain(cluster v1alpha1.Cluster) string
- func ELBNameAPI(cluster v1alpha1.Cluster) string
- func ELBNameEtcd(cluster v1alpha1.Cluster) string
- func ELBNameIngress(cluster v1alpha1.Cluster) string
- func ImageID(cluster v1alpha1.Cluster) string
- func IsDeleted(getter DeletionTimestampGetter) bool
- func IsInvalidParameter(err error) bool
- func IsNotFound(err error) bool
- func IsWrongTypeError(err error) bool
- func KubeletLabels(cluster v1alpha1.Cluster) string
- func MachineDeploymentASGName(getter LabelsGetter) string
- func MachineDeploymentID(getter LabelsGetter) string
- func MasterAvailabilityZone(cluster v1alpha1.Cluster) string
- func MasterCount(cluster v1alpha1.Cluster) int
- func MasterInstanceName(cluster v1alpha1.Cluster) string
- func MasterInstanceResourceName(cluster v1alpha1.Cluster) string
- func MasterInstanceType(cluster v1alpha1.Cluster) string
- func NATEIPName(az string) string
- func NATGatewayName(az string) string
- func NATRouteName(az string) string
- func OperatorVersion(getter LabelsGetter) string
- func OrganizationID(getter LabelsGetter) string
- func PolicyNameMaster(cluster v1alpha1.Cluster) string
- func PolicyNameWorker(cluster v1alpha1.Cluster) string
- func PrivateRouteTableName(az string) string
- func PrivateSubnetName(az string) string
- func PrivateSubnetRouteTableAssociationName(az string) string
- func ProfileNameMaster(cluster v1alpha1.Cluster) string
- func ProfileNameWorker(cluster v1alpha1.Cluster) string
- func PublicRouteTableName(az string) string
- func PublicSubnetName(az string) string
- func PublicSubnetRouteTableAssociationName(az string) string
- func Region(cluster v1alpha1.Cluster) string
- func RegionARN(cluster v1alpha1.Cluster) string
- func ReleaseVersion(getter LabelsGetter) string
- func RoleARNMaster(cluster v1alpha1.Cluster, accountID string) string
- func RoleARNWorker(cluster v1alpha1.Cluster, accountID string) string
- func RoleNameMaster(cluster v1alpha1.Cluster) string
- func RoleNameWorker(cluster v1alpha1.Cluster) string
- func RolePeerAccess(cluster v1alpha1.Cluster) string
- func RouteTableName(cluster v1alpha1.Cluster, suffix, az string) string
- func SanitizeCFResourceName(v string) string
- func SecurityGroupName(cluster v1alpha1.Cluster, groupName string) string
- func SmallCloudConfigPath(getter LabelsGetter, accountID string, role string) string
- func SmallCloudConfigS3URL(getter LabelsGetter, accountID string, role string) string
- func SortedWorkerAvailabilityZones(cr v1alpha1.MachineDeployment) []string
- func StackNameCPF(cluster v1alpha1.Cluster) string
- func StackNameCPI(cluster v1alpha1.Cluster) string
- func StackNameTCCP(cluster v1alpha1.Cluster) string
- func StackNameTCNP(getter LabelsGetter) string
- func StatusAWSConfigNetworkCIDR(customObject v1alpha1.AWSConfig) string
- func StatusClusterNetworkCIDR(cluster v1alpha1.Cluster) string
- func TargetLogBucketName(cluster v1alpha1.Cluster) string
- func ToCluster(v interface{}) (v1alpha1.Cluster, error)
- func ToMachineDeployment(v interface{}) (v1alpha1.MachineDeployment, error)
- func VPCPeeringRouteName(az string) string
- func VolumeNameDocker(cluster v1alpha1.Cluster) string
- func VolumeNameEtcd(cluster v1alpha1.Cluster) string
- func VolumeNameLog(cluster v1alpha1.Cluster) string
- func WorkerAvailabilityZones(cr v1alpha1.MachineDeployment) []string
- func WorkerClusterID(cr v1alpha1.MachineDeployment) string
- func WorkerDockerVolumeSizeGB(cr v1alpha1.MachineDeployment) string
- func WorkerInstanceType(cr v1alpha1.MachineDeployment) string
- func WorkerScalingMax(cr v1alpha1.MachineDeployment) int
- func WorkerScalingMin(cr v1alpha1.MachineDeployment) int
- func WorkerSubnet(cr v1alpha1.MachineDeployment) string
- type DeletionTimestampGetter
- type LabelsGetter
Constants ¶
const ( // CloudConfigVersion defines the version of k8scloudconfig in use. It is used // in the main stack output and S3 object paths. CloudConfigVersion = "v_4_5_0" CloudProvider = "aws" )
const ( EC2RoleK8s = "EC2-K8S-Role" EC2PolicyK8s = "EC2-K8S-Policy" )
const ( IngressControllerInsecurePort = 30010 IngressControllerSecurePort = 30011 )
const ( EtcdPort = 2379 EtcdPrefix = "giantswarm.io" KubernetesSecurePort = 443 )
const ( TagCluster = "giantswarm.io/cluster" TagSubnetType = "giantswarm.io/subnet-type" TagInstallation = "giantswarm.io/installation" TagOrganization = "giantswarm.io/organization" TagTCCP = "giantswarm.io/tccp" )
AWS Tags used for cost analysis and general resource tagging.
const ( RefNodeDrainer = "NodeDrainer" RefWorkerASG = "workerAutoScalingGroup" )
const MaxNumberOfAZs = 4
As a first version of Node Pools feature, the maximum number of distinct Availability Zones is restricted to four due to current IPAM architecture & implementation.
const MaximumNumberOfAZsInCluster = 4
MaximumNumberOfAZsInCluster defines the current limitation with Node Pools implementation. Biggest limitation behind this is current IPAM implementation that restricts network sizes. Another related problem is restrictions in AWS resource structure.
NOTE: This is currently used in several places such as clusterazs resource & adapter. Move this to clusterazs resource when it's not needed elsewhere anymore. This restriction on its whole will be removed when IPAM design gets overhaul and TCCP infrastructure improved.
Variables ¶
var AZLetters []byte
Functions ¶
func BucketName ¶
func BucketName(getter LabelsGetter, accountID string) string
func BucketObjectName ¶
func BucketObjectName(getter LabelsGetter, role string) string
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 ClusterBaseDomain ¶
func ClusterCloudProviderTag ¶
func ClusterCloudProviderTag(getter LabelsGetter) string
func ClusterEtcdEndpoint ¶
func ClusterID ¶
func ClusterID(getter LabelsGetter) string
func ClusterKubeletEndpoint ¶
func ClusterNamespace ¶
func CredentialName ¶
func CredentialNamespace ¶
func EC2ServiceDomain ¶
func ELBNameAPI ¶
func ELBNameEtcd ¶
func ELBNameIngress ¶
func IsDeleted ¶
func IsDeleted(getter DeletionTimestampGetter) bool
func IsInvalidParameter ¶
IsInvalidParameter asserts invalidParameterError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func KubeletLabels ¶
func MachineDeploymentASGName ¶
func MachineDeploymentASGName(getter LabelsGetter) string
func MachineDeploymentID ¶
func MachineDeploymentID(getter LabelsGetter) string
func MasterAvailabilityZone ¶
func MasterCount ¶
func MasterInstanceName ¶
func MasterInstanceType ¶
func NATEIPName ¶
func NATGatewayName ¶
func NATRouteName ¶
func OperatorVersion ¶
func OperatorVersion(getter LabelsGetter) string
func OrganizationID ¶
func OrganizationID(getter LabelsGetter) string
func PolicyNameMaster ¶
func PolicyNameWorker ¶
func PrivateRouteTableName ¶
func PrivateSubnetName ¶
func ProfileNameMaster ¶
func ProfileNameWorker ¶
func PublicRouteTableName ¶
func PublicSubnetName ¶
func ReleaseVersion ¶
func ReleaseVersion(getter LabelsGetter) string
func RoleNameMaster ¶
func RoleNameWorker ¶
func RolePeerAccess ¶
func SanitizeCFResourceName ¶
SanitizeCFResourceName filters out all non-ascii alphanumberics from input string.
Example: SanitizeCFResourceName("abc-123") == "abc123" Example2: SanitizeCFResourceName("Dear god why? щ(゚Д゚щ)") == "Deargodwhy"
func SmallCloudConfigPath ¶
func SmallCloudConfigPath(getter LabelsGetter, accountID string, role string) string
func SmallCloudConfigS3URL ¶
func SmallCloudConfigS3URL(getter LabelsGetter, accountID string, role string) string
func SortedWorkerAvailabilityZones ¶
func SortedWorkerAvailabilityZones(cr v1alpha1.MachineDeployment) []string
func StackNameCPF ¶
func StackNameCPI ¶
func StackNameTCCP ¶
func StackNameTCNP ¶
func StackNameTCNP(getter LabelsGetter) string
func TargetLogBucketName ¶
func ToMachineDeployment ¶
func ToMachineDeployment(v interface{}) (v1alpha1.MachineDeployment, error)
func VPCPeeringRouteName ¶
func VolumeNameDocker ¶
func VolumeNameEtcd ¶
func VolumeNameLog ¶
func WorkerAvailabilityZones ¶
func WorkerAvailabilityZones(cr v1alpha1.MachineDeployment) []string
func WorkerClusterID ¶
func WorkerClusterID(cr v1alpha1.MachineDeployment) string
func WorkerDockerVolumeSizeGB ¶
func WorkerDockerVolumeSizeGB(cr v1alpha1.MachineDeployment) string
func WorkerInstanceType ¶
func WorkerInstanceType(cr v1alpha1.MachineDeployment) string
func WorkerScalingMax ¶
func WorkerScalingMax(cr v1alpha1.MachineDeployment) int
func WorkerScalingMin ¶
func WorkerScalingMin(cr v1alpha1.MachineDeployment) int
func WorkerSubnet ¶
func WorkerSubnet(cr v1alpha1.MachineDeployment) string