key

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 14 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_4_0_0"
	CloudProvider      = "aws"
)
View Source
const (
	EC2RoleK8s   = "EC2-K8S-Role"
	EC2PolicyK8s = "EC2-K8S-Policy"
)
View Source
const (
	IngressControllerInsecurePort = 30010
	IngressControllerSecurePort   = 30011
)
View Source
const (
	EtcdPort             = 2379
	EtcdPrefix           = "giantswarm.io"
	KubernetesSecurePort = 443
)
View Source
const (
	LabelApp           = "app"
	LabelCluster       = "giantswarm.io/cluster"
	LabelOrganization  = "giantswarm.io/organization"
	LabelVersionBundle = "giantswarm.io/version-bundle"
)
View Source
const (
	TagCluster      = "giantswarm.io/cluster"
	TagInstallation = "giantswarm.io/installation"
	TagOrganization = "giantswarm.io/organization"
)

AWS Tags used for cost analysis and general resource tagging.

View Source
const (
	RefNodeDrainer = "NodeDrainer"
	RefWorkerASG   = "workerAutoScalingGroup"
)
View Source
const (
	AnnotationInstanceID = "aws-operator.giantswarm.io/instance"
)

Variables

This section is empty.

Functions

func BucketName

func BucketName(cluster v1alpha1.Cluster, accountID string) string

func BucketObjectName

func BucketObjectName(cluster v1alpha1.Cluster, 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 ClusterAPIEndpoint(cluster v1alpha1.Cluster) string

func ClusterBaseDomain

func ClusterBaseDomain(cluster v1alpha1.Cluster) string

func ClusterCloudProviderTag

func ClusterCloudProviderTag(cluster v1alpha1.Cluster) string

func ClusterEtcdEndpoint

func ClusterEtcdEndpoint(cluster v1alpha1.Cluster) string

func ClusterEtcdEndpointWithPort

func ClusterEtcdEndpointWithPort(cluster v1alpha1.Cluster) string

func ClusterID

func ClusterID(cluster v1alpha1.Cluster) string

func ClusterKubeletEndpoint

func ClusterKubeletEndpoint(cluster v1alpha1.Cluster) string

func ClusterNamespace

func ClusterNamespace(cluster v1alpha1.Cluster) string

func ClusterTags

func ClusterTags(cluster v1alpha1.Cluster, installationName string) map[string]string

func ClusterVersion

func ClusterVersion(cluster v1alpha1.Cluster) string

func CredentialName

func CredentialName(cluster v1alpha1.Cluster) string

func CredentialNamespace

func CredentialNamespace(cluster v1alpha1.Cluster) string

func DockerVolumeResourceName

func DockerVolumeResourceName(cluster v1alpha1.Cluster) string

func EC2ServiceDomain

func EC2ServiceDomain(cluster v1alpha1.Cluster) string

func ELBNameAPI

func ELBNameAPI(cluster v1alpha1.Cluster) string

func ELBNameEtcd

func ELBNameEtcd(cluster v1alpha1.Cluster) string

func ELBNameIngress

func ELBNameIngress(cluster v1alpha1.Cluster) string

func ImageID

func ImageID(cluster v1alpha1.Cluster) string

func IsDeleted

func IsDeleted(getter DeletionTimestampGetter) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func KubeletLabels

func KubeletLabels(cluster v1alpha1.Cluster) string

func MasterCount

func MasterCount(cluster v1alpha1.Cluster) int

func MasterInstanceName

func MasterInstanceName(cluster v1alpha1.Cluster) string

func MasterInstanceResourceName

func MasterInstanceResourceName(cluster v1alpha1.Cluster) string

func MasterInstanceType

func MasterInstanceType(cluster v1alpha1.Cluster) string

func NATEIPName

func NATEIPName(idx int) string

func NATGatewayName

func NATGatewayName(idx int) string

func NATRouteName

func NATRouteName(idx int) string

func OrganizationID

func OrganizationID(cluster v1alpha1.Cluster) string

func PolicyNameMaster

func PolicyNameMaster(cluster v1alpha1.Cluster) string

func PolicyNameWorker

func PolicyNameWorker(cluster v1alpha1.Cluster) string

func PrivateRouteTableName

func PrivateRouteTableName(idx int) string

func PrivateSubnetName

func PrivateSubnetName(idx int) string

func PrivateSubnetRouteTableAssociationName

func PrivateSubnetRouteTableAssociationName(idx int) string

func ProfileNameMaster

func ProfileNameMaster(cluster v1alpha1.Cluster) string

func ProfileNameWorker

func ProfileNameWorker(cluster v1alpha1.Cluster) string

func PublicRouteTableName

func PublicRouteTableName(idx int) string

func PublicSubnetName

func PublicSubnetName(idx int) string

func PublicSubnetRouteTableAssociationName

func PublicSubnetRouteTableAssociationName(idx int) string

func Region

func Region(cluster v1alpha1.Cluster) string

func RegionARN

func RegionARN(cluster v1alpha1.Cluster) string

func RoleARNMaster

func RoleARNMaster(cluster v1alpha1.Cluster, accountID string) string

func RoleARNWorker

func RoleARNWorker(cluster v1alpha1.Cluster, accountID string) string

func RoleNameMaster

func RoleNameMaster(cluster v1alpha1.Cluster) string

func RoleNameWorker

func RoleNameWorker(cluster v1alpha1.Cluster) string

func RolePeerAccess

func RolePeerAccess(cluster v1alpha1.Cluster) string

func RouteTableName

func RouteTableName(cluster v1alpha1.Cluster, suffix string, idx int) string

func SecurityGroupName

func SecurityGroupName(cluster v1alpha1.Cluster, groupName string) string

func SmallCloudConfigPath

func SmallCloudConfigPath(cluster v1alpha1.Cluster, accountID string, role string) string

func SmallCloudConfigS3URL

func SmallCloudConfigS3URL(cluster v1alpha1.Cluster, accountID string, role string) string

func StackNameCPF

func StackNameCPF(cluster v1alpha1.Cluster) string

func StackNameCPI

func StackNameCPI(cluster v1alpha1.Cluster) string

func StackNameTCCP

func StackNameTCCP(cluster v1alpha1.Cluster) string

func StatusAWSConfigNetworkCIDR

func StatusAWSConfigNetworkCIDR(customObject v1alpha1.AWSConfig) string

func StatusAvailabilityZones

TODO this method has to be properly implemented and renamed eventually.

func StatusClusterNetworkCIDR

func StatusClusterNetworkCIDR(cluster v1alpha1.Cluster) string

func TargetLogBucketName

func TargetLogBucketName(cluster v1alpha1.Cluster) string

func ToCluster

func ToCluster(v interface{}) (v1alpha1.Cluster, error)

func ToMachineDeployment

func ToMachineDeployment(v interface{}) (v1alpha1.MachineDeployment, error)

func VPCPeeringRouteName

func VPCPeeringRouteName(idx int) string

func VolumeNameDocker

func VolumeNameDocker(cluster v1alpha1.Cluster) string

func VolumeNameEtcd

func VolumeNameEtcd(cluster v1alpha1.Cluster) string

func VolumeNameLog

func VolumeNameLog(cluster v1alpha1.Cluster) string

func WorkerAvailabilityZones

func WorkerAvailabilityZones(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 WorkerVersion

func WorkerVersion(cr v1alpha1.MachineDeployment) string

Types

type DeletionTimestampGetter

type DeletionTimestampGetter interface {
	GetDeletionTimestamp() *metav1.Time
}

Jump to

Keyboard shortcuts

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