Documentation ¶
Index ¶
- Constants
- func AWSTags(getter LabelsGetter, installationName string) map[string]string
- func BucketName(getter LabelsGetter, accountID string) string
- func CloudConfigSmallTemplates() []string
- func ClusterAPIEndpoint(cluster infrastructurev1alpha2.AWSCluster) string
- func ClusterBaseDomain(cluster infrastructurev1alpha2.AWSCluster) string
- func ClusterCloudProviderTag(getter LabelsGetter) string
- func ClusterEtcdEndpoint(cluster infrastructurev1alpha2.AWSCluster) string
- func ClusterEtcdEndpointWithPort(cluster infrastructurev1alpha2.AWSCluster) string
- func ClusterID(getter LabelsGetter) string
- func ClusterKubeletEndpoint(cluster infrastructurev1alpha2.AWSCluster) string
- func ClusterNamespace(cluster infrastructurev1alpha2.AWSCluster) string
- func CredentialName(cluster infrastructurev1alpha2.AWSCluster) string
- func CredentialNamespace(cluster infrastructurev1alpha2.AWSCluster) string
- func DockerVolumeResourceName(cr infrastructurev1alpha2.AWSCluster, t time.Time) string
- func EC2ServiceDomain(region string) string
- func ELBNameAPI(getter LabelsGetter) string
- func ELBNameEtcd(getter LabelsGetter) string
- func HealthCheckTarget(port int) string
- func ImageID(region string) string
- func InternalELBNameAPI(getter LabelsGetter) string
- func IsDeleted(getter DeletionTimestampGetter) bool
- func IsInvalidParameter(err error) bool
- func IsNotFound(err error) bool
- func IsWrongTypeError(err error) bool
- func KubeletLabelsTCCP(getter LabelsGetter) string
- func KubeletLabelsTCNP(getter LabelsGetter) string
- func MachineDeploymentAvailabilityZones(cr infrastructurev1alpha2.AWSMachineDeployment) []string
- func MachineDeploymentDockerVolumeSizeGB(cr infrastructurev1alpha2.AWSMachineDeployment) string
- func MachineDeploymentID(getter LabelsGetter) string
- func MachineDeploymentInstanceType(cr infrastructurev1alpha2.AWSMachineDeployment) string
- func MachineDeploymentKubeletVolumeSizeGB(cr infrastructurev1alpha2.AWSMachineDeployment) string
- func MachineDeploymentScalingMax(cr infrastructurev1alpha2.AWSMachineDeployment) int
- func MachineDeploymentScalingMin(cr infrastructurev1alpha2.AWSMachineDeployment) int
- func MachineDeploymentSubnet(cr infrastructurev1alpha2.AWSMachineDeployment) string
- func ManagedRecordSets(cluster infrastructurev1alpha2.AWSCluster) []string
- func MasterAvailabilityZone(cluster infrastructurev1alpha2.AWSCluster) string
- func MasterCount(cluster infrastructurev1alpha2.AWSCluster) int
- func MasterInstanceName(cluster infrastructurev1alpha2.AWSCluster) string
- func MasterInstanceResourceName(cr infrastructurev1alpha2.AWSCluster, t time.Time) string
- func MasterInstanceType(cluster infrastructurev1alpha2.AWSCluster) string
- func NATEIPName(az string) string
- func NATGatewayName(az string) string
- func NATRouteName(az string) string
- func OIDCClientID(cluster infrastructurev1alpha2.AWSCluster) string
- func OIDCGroupsClaim(cluster infrastructurev1alpha2.AWSCluster) string
- func OIDCIssuerURL(cluster infrastructurev1alpha2.AWSCluster) string
- func OIDCUsernameClaim(cluster infrastructurev1alpha2.AWSCluster) string
- func OperatorVersion(getter LabelsGetter) string
- func OrganizationID(getter LabelsGetter) string
- func PolicyNameMaster(cluster infrastructurev1alpha2.AWSCluster) string
- func PrivateInternetGatewayRouteName(az string) string
- func PrivateRouteTableName(az string) string
- func PrivateSubnetName(az string) string
- func PrivateSubnetRouteTableAssociationName(az string) string
- func ProfileNameMaster(cluster infrastructurev1alpha2.AWSCluster) string
- func PublicInternetGatewayRouteName(az string) string
- func PublicRouteTableName(az string) string
- func PublicSubnetName(az string) string
- func PublicSubnetRouteTableAssociationName(az string) string
- func Region(cluster infrastructurev1alpha2.AWSCluster) string
- func RegionARN(region string) string
- func RoleARNMaster(getter LabelsGetter, region string, accountID string) string
- func RoleARNWorker(getter LabelsGetter, region string, accountID string) string
- func RoleNameMaster(cluster infrastructurev1alpha2.AWSCluster) string
- func RolePeerAccess(cluster infrastructurev1alpha2.AWSCluster) string
- func RouteTableName(cluster infrastructurev1alpha2.AWSCluster, suffix, az string) string
- func S3ObjectPathTCCP(getter LabelsGetter) string
- func S3ObjectPathTCNP(getter LabelsGetter) string
- func SanitizeCFResourceName(l ...string) string
- func SecurityGroupName(getter LabelsGetter, groupName string) string
- func StackNameTCCP(getter LabelsGetter) string
- func StackNameTCCPF(getter LabelsGetter) string
- func StackNameTCCPI(getter LabelsGetter) string
- func StackNameTCNP(getter LabelsGetter) string
- func StackNameTCNPF(getter LabelsGetter) string
- func StatusAWSConfigNetworkCIDR(customObject g8sv1alpha1.AWSConfig) string
- func StatusClusterNetworkCIDR(cluster infrastructurev1alpha2.AWSCluster) string
- func TargetLogBucketName(cluster infrastructurev1alpha2.AWSCluster) string
- func TenantClusterBaseDomain(cluster infrastructurev1alpha2.AWSCluster) string
- func ToCluster(v interface{}) (infrastructurev1alpha2.AWSCluster, error)
- func ToMachineDeployment(v interface{}) (infrastructurev1alpha2.AWSMachineDeployment, error)
- func VPCPeeringRouteName(az string) string
- func VersionLabelSelector(enabled bool, overridenVersion string) string
- func VolumeNameDocker(cluster infrastructurev1alpha2.AWSCluster) string
- func VolumeNameEtcd(cluster infrastructurev1alpha2.AWSCluster) string
- func VolumeNameLog(cluster infrastructurev1alpha2.AWSCluster) string
- type DeletionTimestampGetter
- type LabelsGetter
Constants ¶
View Source
const ( // CloudConfigVersion defines the version of k8scloudconfig in use. It is used // in the main stack output and S3 object paths. CloudConfigVersion = "v_4_8_0" CloudProvider = "aws" )
View Source
const ( EC2RoleK8s = "EC2-K8S-Role" EC2PolicyK8s = "EC2-K8S-Policy" )
View Source
const ( EtcdPort = 2379 EtcdPrefix = "giantswarm.io" KubernetesSecurePort = 443 )
View Source
const ( TagAvailabilityZone = "giantswarm.io/availability-zone" TagCluster = "giantswarm.io/cluster" TagInstallation = "giantswarm.io/installation" TagMachineDeployment = "giantswarm.io/machine-deployment" TagOrganization = "giantswarm.io/organization" TagRouteTableType = "giantswarm.io/route-table-type" TagStack = "giantswarm.io/stack" TagSubnetType = "giantswarm.io/subnet-type" )
AWS Tags used for cost analysis and general resource tagging.
View Source
const ( StackTCCP = "tccp" StackTCCPF = "tccpf" StackTCCPI = "tccpi" StackTCNP = "tcnp" StackTCNPF = "tcnpf" )
View Source
const ( RefNodeDrainer = "NodeDrainer" RefWorkerASG = "workerAutoScalingGroup" )
Variables ¶
This section is empty.
Functions ¶
func BucketName ¶
func BucketName(getter LabelsGetter, accountID string) string
func CloudConfigSmallTemplates ¶
func CloudConfigSmallTemplates() []string
func ClusterAPIEndpoint ¶
func ClusterAPIEndpoint(cluster infrastructurev1alpha2.AWSCluster) string
func ClusterBaseDomain ¶
func ClusterBaseDomain(cluster infrastructurev1alpha2.AWSCluster) string
func ClusterCloudProviderTag ¶
func ClusterCloudProviderTag(getter LabelsGetter) string
func ClusterEtcdEndpoint ¶
func ClusterEtcdEndpoint(cluster infrastructurev1alpha2.AWSCluster) string
func ClusterEtcdEndpointWithPort ¶
func ClusterEtcdEndpointWithPort(cluster infrastructurev1alpha2.AWSCluster) string
func ClusterID ¶
func ClusterID(getter LabelsGetter) string
func ClusterKubeletEndpoint ¶
func ClusterKubeletEndpoint(cluster infrastructurev1alpha2.AWSCluster) string
func ClusterNamespace ¶
func ClusterNamespace(cluster infrastructurev1alpha2.AWSCluster) string
func CredentialName ¶
func CredentialName(cluster infrastructurev1alpha2.AWSCluster) string
func CredentialNamespace ¶
func CredentialNamespace(cluster infrastructurev1alpha2.AWSCluster) string
func DockerVolumeResourceName ¶
func DockerVolumeResourceName(cr infrastructurev1alpha2.AWSCluster, t time.Time) string
func EC2ServiceDomain ¶
func ELBNameAPI ¶
func ELBNameAPI(getter LabelsGetter) string
func ELBNameEtcd ¶
func ELBNameEtcd(getter LabelsGetter) string
func HealthCheckTarget ¶
func InternalELBNameAPI ¶
func InternalELBNameAPI(getter LabelsGetter) string
func IsDeleted ¶
func IsDeleted(getter DeletionTimestampGetter) bool
func IsInvalidParameter ¶
IsInvalidParameter asserts invalidParameterError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func KubeletLabelsTCCP ¶
func KubeletLabelsTCCP(getter LabelsGetter) string
func KubeletLabelsTCNP ¶
func KubeletLabelsTCNP(getter LabelsGetter) string
func MachineDeploymentAvailabilityZones ¶
func MachineDeploymentAvailabilityZones(cr infrastructurev1alpha2.AWSMachineDeployment) []string
func MachineDeploymentDockerVolumeSizeGB ¶
func MachineDeploymentDockerVolumeSizeGB(cr infrastructurev1alpha2.AWSMachineDeployment) string
func MachineDeploymentID ¶
func MachineDeploymentID(getter LabelsGetter) string
func MachineDeploymentInstanceType ¶
func MachineDeploymentInstanceType(cr infrastructurev1alpha2.AWSMachineDeployment) string
func MachineDeploymentKubeletVolumeSizeGB ¶
func MachineDeploymentKubeletVolumeSizeGB(cr infrastructurev1alpha2.AWSMachineDeployment) string
func MachineDeploymentScalingMax ¶
func MachineDeploymentScalingMax(cr infrastructurev1alpha2.AWSMachineDeployment) int
func MachineDeploymentScalingMin ¶
func MachineDeploymentScalingMin(cr infrastructurev1alpha2.AWSMachineDeployment) int
func MachineDeploymentSubnet ¶
func MachineDeploymentSubnet(cr infrastructurev1alpha2.AWSMachineDeployment) string
func ManagedRecordSets ¶
func ManagedRecordSets(cluster infrastructurev1alpha2.AWSCluster) []string
func MasterAvailabilityZone ¶
func MasterAvailabilityZone(cluster infrastructurev1alpha2.AWSCluster) string
func MasterCount ¶
func MasterCount(cluster infrastructurev1alpha2.AWSCluster) int
func MasterInstanceName ¶
func MasterInstanceName(cluster infrastructurev1alpha2.AWSCluster) string
func MasterInstanceResourceName ¶
func MasterInstanceResourceName(cr infrastructurev1alpha2.AWSCluster, t time.Time) string
func MasterInstanceType ¶
func MasterInstanceType(cluster infrastructurev1alpha2.AWSCluster) string
func NATEIPName ¶
func NATGatewayName ¶
func NATRouteName ¶
func OIDCClientID ¶
func OIDCClientID(cluster infrastructurev1alpha2.AWSCluster) string
func OIDCGroupsClaim ¶
func OIDCGroupsClaim(cluster infrastructurev1alpha2.AWSCluster) string
func OIDCIssuerURL ¶
func OIDCIssuerURL(cluster infrastructurev1alpha2.AWSCluster) string
func OIDCUsernameClaim ¶
func OIDCUsernameClaim(cluster infrastructurev1alpha2.AWSCluster) string
func OperatorVersion ¶
func OperatorVersion(getter LabelsGetter) string
func OrganizationID ¶
func OrganizationID(getter LabelsGetter) string
func PolicyNameMaster ¶
func PolicyNameMaster(cluster infrastructurev1alpha2.AWSCluster) string
func PrivateRouteTableName ¶
func PrivateSubnetName ¶
func ProfileNameMaster ¶
func ProfileNameMaster(cluster infrastructurev1alpha2.AWSCluster) string
func PublicRouteTableName ¶
func PublicSubnetName ¶
func Region ¶
func Region(cluster infrastructurev1alpha2.AWSCluster) string
func RoleARNMaster ¶
func RoleARNMaster(getter LabelsGetter, region string, accountID string) string
func RoleARNWorker ¶
func RoleARNWorker(getter LabelsGetter, region string, accountID string) string
func RoleNameMaster ¶
func RoleNameMaster(cluster infrastructurev1alpha2.AWSCluster) string
func RolePeerAccess ¶
func RolePeerAccess(cluster infrastructurev1alpha2.AWSCluster) string
func RouteTableName ¶
func RouteTableName(cluster infrastructurev1alpha2.AWSCluster, suffix, az string) string
func S3ObjectPathTCCP ¶
func S3ObjectPathTCCP(getter LabelsGetter) string
S3ObjectPathTCCP computes the S3 object path to the cloud config uploaded for the TCCP stack.
version/3.4.0/cloudconfig/v_3_2_5/cluster-al9qy-tccp
func S3ObjectPathTCNP ¶
func S3ObjectPathTCNP(getter LabelsGetter) string
S3ObjectPathTCNP computes the S3 object path to the cloud config uploaded for the TCCP stack.
version/3.4.0/cloudconfig/v_3_2_5/cluster-al9qy-tcnp-g3j50
func SanitizeCFResourceName ¶
SanitizeCFResourceName filters out all non-ascii alphanumberics from input string.
SanitizeCFResourceName("abc-123") == "abc123" SanitizeCFResourceName("abc", "123") == "abc123" SanitizeCFResourceName("Dear god why? щ(゚Д゚щ)") == "Deargodwhy"
func SecurityGroupName ¶
func SecurityGroupName(getter LabelsGetter, groupName string) string
func StackNameTCCP ¶
func StackNameTCCP(getter LabelsGetter) string
func StackNameTCCPF ¶
func StackNameTCCPF(getter LabelsGetter) string
func StackNameTCCPI ¶
func StackNameTCCPI(getter LabelsGetter) string
func StackNameTCNP ¶
func StackNameTCNP(getter LabelsGetter) string
func StackNameTCNPF ¶
func StackNameTCNPF(getter LabelsGetter) string
func StatusAWSConfigNetworkCIDR ¶
func StatusAWSConfigNetworkCIDR(customObject g8sv1alpha1.AWSConfig) string
func StatusClusterNetworkCIDR ¶
func StatusClusterNetworkCIDR(cluster infrastructurev1alpha2.AWSCluster) string
func TargetLogBucketName ¶
func TargetLogBucketName(cluster infrastructurev1alpha2.AWSCluster) string
func TenantClusterBaseDomain ¶
func TenantClusterBaseDomain(cluster infrastructurev1alpha2.AWSCluster) string
func ToCluster ¶
func ToCluster(v interface{}) (infrastructurev1alpha2.AWSCluster, error)
func ToMachineDeployment ¶
func ToMachineDeployment(v interface{}) (infrastructurev1alpha2.AWSMachineDeployment, error)
func VPCPeeringRouteName ¶
func VersionLabelSelector ¶
func VolumeNameDocker ¶
func VolumeNameDocker(cluster infrastructurev1alpha2.AWSCluster) string
func VolumeNameEtcd ¶
func VolumeNameEtcd(cluster infrastructurev1alpha2.AWSCluster) string
func VolumeNameLog ¶
func VolumeNameLog(cluster infrastructurev1alpha2.AWSCluster) string
Types ¶
type DeletionTimestampGetter ¶
type LabelsGetter ¶
Click to show internal directories.
Click to hide internal directories.