key

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MastersVmssDeploymentName = "masters-vmss-template"
	WorkersVmssDeploymentName = "workers-vmss-template"

	AnnotationEtcdDomain        = "giantswarm.io/etcd-domain"
	AnnotationPrometheusCluster = "giantswarm.io/prometheus-cluster"

	LabelApp             = "app"
	LabelCluster         = "giantswarm.io/cluster"
	LabelCustomer        = "customer"
	LabelManagedBy       = "giantswarm.io/managed-by"
	LabelOperatorVersion = "azure-operator.giantswarm.io/version"
	LabelOrganization    = "giantswarm.io/organization"

	LegacyLabelCluster = "cluster"

	CertificateEncryptionNamespace = "default"
	CertificateEncryptionKeyName   = "encryptionkey"
	CertificateEncryptionIVName    = "encryptioniv"

	ContainerLinuxComponentName = "containerlinux"

	OrganizationSecretsLabelSelector = "app=credentiald" // nolint:gosec
)
View Source
const (
	// ComponentOS is the name of the component specified in a Release CR which
	// determines the version of the OS to be used for tenant cluster nodes and
	// is ultimately transformed into an AMI based on TC region.
	ComponentOS = "containerlinux"
)

Variables

View Source
var (
	LocationsThatDontSupportAZs = []string{
		"germanywestcentral",
	}
)

Functions

func APISecurePort

func APISecurePort(customObject providerv1alpha1.AzureConfig) int

func AdminSSHKeyData

func AdminSSHKeyData(customObject providerv1alpha1.AzureConfig) string

func AdminUsername

func AdminUsername(customObject providerv1alpha1.AzureConfig) string

func AvailabilityZones

func AvailabilityZones(customObject providerv1alpha1.AzureConfig, location string) []int

AvailabilityZones returns the availability zones where the cluster will be created.

func AzureConfigNetworkCIDR

func AzureConfigNetworkCIDR(customObject providerv1alpha1.AzureConfig) string

func BlobContainerName

func BlobContainerName() string

func BlobName

func BlobName(customObject LabelsGetter, role string) string

func CalicoCIDR

func CalicoCIDR(customObject providerv1alpha1.AzureConfig) string

func CertificateEncryptionSecretName

func CertificateEncryptionSecretName(customObject LabelsGetter) string

func CloudConfigSmallTemplates

func CloudConfigSmallTemplates() []string

func ClusterAPIEndpoint

func ClusterAPIEndpoint(customObject providerv1alpha1.AzureConfig) string

func ClusterBaseDomain

func ClusterBaseDomain(customObject providerv1alpha1.AzureConfig) string

func ClusterCloudProviderTag

func ClusterCloudProviderTag(getter LabelsGetter) string

func ClusterCustomer

func ClusterCustomer(customObject providerv1alpha1.AzureConfig) string

ClusterCustomer returns the customer ID for this cluster.

func ClusterDNSDomain

func ClusterDNSDomain(customObject providerv1alpha1.AzureConfig) string

ClusterDNSDomain returns cluster DNS domain.

func ClusterEtcdDomain

func ClusterEtcdDomain(customObject providerv1alpha1.AzureConfig) string

func ClusterID

func ClusterID(getter LabelsGetter) string

func ClusterName

func ClusterName(getter LabelsGetter) string

func ClusterNamespace

func ClusterNamespace(customObject providerv1alpha1.AzureConfig) string

ClusterNamespace returns the cluster Namespace for this cluster.

func ClusterOrganization

func ClusterOrganization(customObject providerv1alpha1.AzureConfig) string

ClusterOrganization returns the org name from the custom object. It uses ClusterCustomer until this field is renamed in the custom object.

func ClusterTags

func ClusterTags(customObject providerv1alpha1.AzureConfig, installationName string) map[string]*string

ClusterTags returns a map with the resource tags for this cluster.

func ComponentVersion

func ComponentVersion(release releasev1alpha1.Release, componentName string) (string, error)

func CredentialName

func CredentialName(customObject providerv1alpha1.AzureConfig) string

CredentialName returns name of the credential secret.

func CredentialNamespace

func CredentialNamespace(customObject providerv1alpha1.AzureConfig) string

CredentialNamespace returns namespace of the credential secret.

func DNSZoneAPI

func DNSZoneAPI(customObject providerv1alpha1.AzureConfig) string

DNSZoneAPI returns api parent DNS zone domain name.

func DNSZoneEtcd

func DNSZoneEtcd(customObject providerv1alpha1.AzureConfig) string

DNSZoneEtcd returns etcd parent DNS zone domain name. zone should be created in.

func DNSZoneIngress

func DNSZoneIngress(customObject providerv1alpha1.AzureConfig) string

DNSZoneIngress returns ingress parent DNS zone domain name.

func DNSZonePrefixAPI

func DNSZonePrefixAPI(customObject providerv1alpha1.AzureConfig) string

DNSZonePrefixAPI returns relative name of the api DNS zone.

func DNSZonePrefixEtcd

func DNSZonePrefixEtcd(customObject providerv1alpha1.AzureConfig) string

DNSZonePrefixEtcd returns relative name of the etcd DNS zone.

func DNSZonePrefixIngress

func DNSZonePrefixIngress(customObject providerv1alpha1.AzureConfig) string

DNSZonePrefixIngress returns relative name of the ingress DNS zone.

func DNSZoneResourceGroupAPI

func DNSZoneResourceGroupAPI(customObject providerv1alpha1.AzureConfig) string

DNSZoneResourceGroupAPI returns resource group name of the API parent DNS zone.

func DNSZoneResourceGroupEtcd

func DNSZoneResourceGroupEtcd(customObject providerv1alpha1.AzureConfig) string

DNSZoneResourceGroupEtcd returns resource group name of the etcd parent DNS zone.

func DNSZoneResourceGroupIngress

func DNSZoneResourceGroupIngress(customObject providerv1alpha1.AzureConfig) string

DNSZoneResourceGroupIngress returns resource group name of the ingress parent DNS zone.

func DefaultVersions

func DefaultVersions() k8scloudconfig.Versions

func HealthCheckTarget

func HealthCheckTarget(port int) string

func InternalELBNameAPI

func InternalELBNameAPI(getter LabelsGetter) string

func IsClusterCreating

func IsClusterCreating(cr providerv1alpha1.AzureConfig) bool

IsClusterCreating check if the cluster is being created.

func IsControlPlaneMachine

func IsControlPlaneMachine(getter LabelsGetter) bool

func IsDeleted

func IsDeleted(getter DeletionTimestampGetter) bool

func IsFailedProvisioningState

func IsFailedProvisioningState(s string) bool

func IsFinalProvisioningState

func IsFinalProvisioningState(s string) bool

func IsMissingOutputValue

func IsMissingOutputValue(err error) bool

IsMissingOutputValue asserts missingOutputValueError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsSucceededProvisioningState

func IsSucceededProvisioningState(s string) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func MachinePoolOperatorVersion

func MachinePoolOperatorVersion(cr expcapzv1alpha3.AzureMachinePool) string

func MasterInstanceName

func MasterInstanceName(customObject providerv1alpha1.AzureConfig, instanceID string) string

func MasterNICName

func MasterNICName(customObject providerv1alpha1.AzureConfig) string

MasterNICName returns name of the master NIC.

func MasterSecurityGroupName

func MasterSecurityGroupName(customObject providerv1alpha1.AzureConfig) string

MasterSecurityGroupName returns name of the security group attached to master subnet.

func MasterSubnetName

func MasterSubnetName(customObject providerv1alpha1.AzureConfig) string

MasterSubnetName returns name of the master subnet.

func MasterVMSSName

func MasterVMSSName(customObject providerv1alpha1.AzureConfig) string

func MastersSubnetCIDR

func MastersSubnetCIDR(customObject providerv1alpha1.AzureConfig) string

func OSVersion

func OSVersion(release releasev1alpha1.Release) (string, error)

func OperatorVersion

func OperatorVersion(getter LabelsGetter) string

func OrganizationID

func OrganizationID(getter LabelsGetter) string

func PrefixMaster

func PrefixMaster() string

func PrefixWorker

func PrefixWorker() string

func ReleaseName

func ReleaseName(releaseVersion string) string

func ReleaseVersion

func ReleaseVersion(getter LabelsGetter) string

func ResourceGroupName

func ResourceGroupName(customObject providerv1alpha1.AzureConfig) string

ResourceGroupName returns name of the resource group for this cluster.

func RouteTableName

func RouteTableName(customObject providerv1alpha1.AzureConfig) string

RouteTableName returns name of the route table for this cluster.

func StorageAccountName

func StorageAccountName(customObject LabelsGetter) string

func ToAzureCluster

func ToAzureCluster(v interface{}) (capzv1alpha3.AzureCluster, error)

func ToAzureMachinePool

func ToAzureMachinePool(v interface{}) (expcapzv1alpha3.AzureMachinePool, error)

func ToClusterEndpoint

func ToClusterEndpoint(v interface{}) (string, error)

func ToClusterID

func ToClusterID(v interface{}) (string, error)

func ToClusterStatus

func ToClusterStatus(v interface{}) (providerv1alpha1.StatusCluster, error)

func ToCustomResource

func ToCustomResource(v interface{}) (providerv1alpha1.AzureConfig, error)

func ToKeyValue

func ToKeyValue(m map[string]interface{}) (interface{}, error)

func ToMap

func ToMap(v interface{}) (map[string]interface{}, error)

func ToNodeCount

func ToNodeCount(v interface{}) (int, error)

func ToOperatorVersion

func ToOperatorVersion(v interface{}) (string, error)

func ToParameters

func ToParameters(list ...map[string]interface{}) map[string]interface{}

ToParameters merges the input maps and converts the result into the structure used by the Azure API. Note that the order of inputs is relevant. Default parameters should be given first. Data of the following maps will overwrite eventual data of preceeding maps. This mechanism is used for e.g. setting the initialProvisioning parameter accordingly to the cluster's state.

func ToString

func ToString(v interface{}) (string, error)

func ToStringMap

func ToStringMap(v interface{}) (map[string]string, error)

func VNetGatewaySubnetName

func VNetGatewaySubnetName() string

VNetGatewaySubnetName returns the name of the subnet for the vpn gateway.

func VPNGatewayName

func VPNGatewayName(customObject providerv1alpha1.AzureConfig) string

VPNGatewayName returns name of the vpn gateway.

func VnetCIDR

func VnetCIDR(customObject providerv1alpha1.AzureConfig) string

func VnetName

func VnetName(customObject providerv1alpha1.AzureConfig) string

VnetName returns name of the virtual network.

func WorkerCount

func WorkerCount(customObject providerv1alpha1.AzureConfig) int

WorkerCount returns the desired number of workers.

func WorkerInstanceName

func WorkerInstanceName(customObject providerv1alpha1.AzureConfig, instanceID string) string

func WorkerSecurityGroupName

func WorkerSecurityGroupName(customObject providerv1alpha1.AzureConfig) string

WorkerSecurityGroupName returns name of the security group attached to worker subnet.

func WorkerSubnetName

func WorkerSubnetName(customObject providerv1alpha1.AzureConfig) string

WorkerSubnetName returns name of the worker subnet.

func WorkerVMSSName

func WorkerVMSSName(customObject providerv1alpha1.AzureConfig) string

func WorkersSubnetCIDR

func WorkersSubnetCIDR(customObject providerv1alpha1.AzureConfig) 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