key

package
v8.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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_5_0_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"
	TagClusterType             = "giantswarm.io/cluster-type"
	TagClusterTypeControlPlane = "control-plane"
	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 (
	RefWorkerASG = "workerAutoScalingGroup"
)

Variables

This section is empty.

Functions

func AWSTags

func AWSTags(getter LabelsGetter, installationName string) map[string]string

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 EC2ServiceDomain(region string) string

func ELBNameAPI

func ELBNameAPI(getter LabelsGetter) string

func ELBNameEtcd

func ELBNameEtcd(getter LabelsGetter) string

func HealthCheckTarget

func HealthCheckTarget(port int) string

func ImageID

func ImageID(region string) string

func InternalELBNameAPI

func InternalELBNameAPI(getter LabelsGetter) string

func IsDeleted

func IsDeleted(getter DeletionTimestampGetter) bool

func IsInvalidParameter

func IsInvalidParameter(err error) bool

IsInvalidParameter asserts invalidParameterError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

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 MachineDeploymentID

func MachineDeploymentID(getter LabelsGetter) 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 NATEIPName(az string) string

func NATGatewayName

func NATGatewayName(az string) string

func NATRouteName

func NATRouteName(az string) string

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 PrivateInternetGatewayRouteName

func PrivateInternetGatewayRouteName(az string) string

func PrivateRouteTableName

func PrivateRouteTableName(az string) string

func PrivateSubnetName

func PrivateSubnetName(az string) string

func PrivateSubnetRouteTableAssociationName

func PrivateSubnetRouteTableAssociationName(az string) string

func ProfileNameMaster

func ProfileNameMaster(cluster infrastructurev1alpha2.AWSCluster) string

func PublicInternetGatewayRouteName

func PublicInternetGatewayRouteName(az string) string

func PublicRouteTableName

func PublicRouteTableName(az string) string

func PublicSubnetName

func PublicSubnetName(az string) string

func PublicSubnetRouteTableAssociationName

func PublicSubnetRouteTableAssociationName(az string) string

func Region

func RegionARN

func RegionARN(region string) 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

func SanitizeCFResourceName(l ...string) string

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 VPCPeeringRouteName(az string) string

func VersionLabelSelector

func VersionLabelSelector(enabled bool, overridenVersion string) string

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 DeletionTimestampGetter interface {
	GetDeletionTimestamp() *metav1.Time
}

type LabelsGetter

type LabelsGetter interface {
	GetLabels() map[string]string
}

Jump to

Keyboard shortcuts

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