Documentation ¶
Index ¶
- Constants
- func APISecurePort(customObject providerv1alpha1.AzureConfig) int
- func AvailabilityZones(customObject providerv1alpha1.AzureConfig, location string) []int
- func AzureConfigNetworkCIDR(customObject providerv1alpha1.AzureConfig) string
- func AzureMachineName(getter LabelsGetter) string
- func BlobContainerName() string
- func BlobName(customObject LabelsGetter, role string) string
- func BootstrapBlobName(customObject capzexp.AzureMachinePool) string
- func CGroupVersion(machinePool *capiexp.MachinePool) string
- func CalicoCIDR(customObject providerv1alpha1.AzureConfig) string
- func CertificateEncryptionSecretName(customObject LabelsGetter) string
- func CloudConfigSmallTemplates() []string
- func ClusterAPIEndpoint(customObject providerv1alpha1.AzureConfig) string
- func ClusterBaseDomain(customObject providerv1alpha1.AzureConfig) string
- func ClusterCloudProviderTag(getter LabelsGetter) string
- func ClusterCustomer(customObject providerv1alpha1.AzureConfig) string
- func ClusterDNSDomain(customObject providerv1alpha1.AzureConfig) string
- func ClusterEtcdDomain(customObject providerv1alpha1.AzureConfig) string
- func ClusterID(getter LabelsGetter) string
- func ClusterIPRange(customObject providerv1alpha1.AzureConfig) string
- func ClusterName(getter LabelsGetter) string
- func ClusterNamespace(customObject providerv1alpha1.AzureConfig) string
- func ClusterOrganization(customObject providerv1alpha1.AzureConfig) string
- func ClusterTags(customObject providerv1alpha1.AzureConfig, installationName string) map[string]*string
- func ComponentVersion(release releasev1alpha1.Release, componentName string) (string, error)
- func CredentialName(customObject providerv1alpha1.AzureConfig) string
- func CredentialNamespace(customObject providerv1alpha1.AzureConfig) string
- func DNSZoneAPI(customObject providerv1alpha1.AzureConfig) string
- func DNSZoneEtcd(customObject providerv1alpha1.AzureConfig) string
- func DNSZoneIngress(customObject providerv1alpha1.AzureConfig) string
- func DNSZonePrefixAPI(customObject providerv1alpha1.AzureConfig) string
- func DNSZonePrefixEtcd(customObject providerv1alpha1.AzureConfig) string
- func DNSZonePrefixIngress(customObject providerv1alpha1.AzureConfig) string
- func DNSZoneResourceGroupAPI(customObject providerv1alpha1.AzureConfig) string
- func DNSZoneResourceGroupEtcd(customObject providerv1alpha1.AzureConfig) string
- func DNSZoneResourceGroupIngress(customObject providerv1alpha1.AzureConfig) string
- func DNSZones(customObject providerv1alpha1.AzureConfig) providerv1alpha1.AzureConfigSpecAzureDNSZones
- func DefaultVersions() k8scloudconfig.Versions
- func EncryptionConfigSecretName(clusterName string) string
- func HealthCheckTarget(port int) string
- func InstanceIDFromNode(node v1.Node) (string, error)
- func InternalELBNameAPI(getter LabelsGetter) string
- func IsClusterCreating(cr providerv1alpha1.AzureConfig) bool
- func IsControlPlaneMachine(getter LabelsGetter) bool
- func IsDeleted(getter DeletionTimestampGetter) bool
- func IsExecutionFailed(err error) bool
- func IsFailedProvisioningState(s string) bool
- func IsFinalProvisioningState(s string) bool
- func IsMissingMachinePoolLabelError(err error) bool
- func IsMissingOutputValue(err error) bool
- func IsNotFound(err error) bool
- func IsSucceededProvisioningState(s string) bool
- func IsWrongTypeError(err error) bool
- func KubeletLabelsNodePool(getter LabelsGetter) (string, error)
- func KubernetesVersion(release releasev1alpha1.Release) (string, error)
- func MachinePoolID(getter LabelsGetter) (string, error)
- func MasterInstanceName(customObject providerv1alpha1.AzureConfig, instanceID string) string
- func MasterNICName(customObject providerv1alpha1.AzureConfig) string
- func MasterNatGatewayID(cr providerv1alpha1.AzureConfig, subscriptionID string) string
- func MasterSecurityGroupName(customObject providerv1alpha1.AzureConfig) string
- func MasterSubnetName(customObject providerv1alpha1.AzureConfig) string
- func MasterSubnetNameFromClusterAPIObject(getter LabelsGetter) string
- func MasterVMSSName(customObject providerv1alpha1.AzureConfig) string
- func MasterVMSSNameFromClusterAPIObject(getter LabelsGetter) string
- func MastersSubnetCIDR(customObject providerv1alpha1.AzureConfig) string
- func NodePoolDeploymentName(azureMachinePool *capzexp.AzureMachinePool) string
- func NodePoolInstanceName(nodePoolName, instanceID string) string
- func NodePoolMaxReplicas(machinePool *capiexp.MachinePool) int32
- func NodePoolMinReplicas(machinePool *capiexp.MachinePool) int32
- func NodePoolSpotInstancesEnabled(azureMachinePool *capzexp.AzureMachinePool) bool
- func NodePoolSpotInstancesMaxPrice(azureMachinePool *capzexp.AzureMachinePool) string
- func NodePoolVMSSName(azureMachinePool *capzexp.AzureMachinePool) string
- func OSVersion(release releasev1alpha1.Release) (string, error)
- func OperatorVersion(getter LabelsGetter) string
- func OrganizationID(getter LabelsGetter) string
- func OrganizationNamespace(getter LabelsGetter) string
- func PrefixMaster() string
- func PrefixWorker() string
- func ReleaseName(releaseVersion string) string
- func ReleaseVersion(getter LabelsGetter) string
- func ResourceGroupName(customObject providerv1alpha1.AzureConfig) string
- func RouteTableName(customObject providerv1alpha1.AzureConfig) string
- func ScalingMaxWorkers(customObject providerv1alpha1.AzureConfig) int
- func ScalingMinWorkers(customObject providerv1alpha1.AzureConfig) int
- func StorageAccountName(customObject LabelsGetter) string
- func SubnetDeploymentName(subnetName string) string
- func ToAzureCluster(v interface{}) (capz.AzureCluster, error)
- func ToAzureMachine(v interface{}) (capz.AzureMachine, error)
- func ToAzureMachinePool(v interface{}) (capzexp.AzureMachinePool, error)
- func ToCluster(v interface{}) (capi.Cluster, error)
- func ToClusterEndpoint(v interface{}) (string, error)
- func ToClusterID(v interface{}) (string, error)
- func ToClusterKubernetesSSHUser(s employees.SSHUserList) []v1alpha1.ClusterKubernetesSSHUser
- func ToClusterStatus(v interface{}) (providerv1alpha1.StatusCluster, error)
- func ToCustomResource(v interface{}) (providerv1alpha1.AzureConfig, error)
- func ToKeyValue(m map[string]interface{}) (interface{}, error)
- func ToMachinePool(v interface{}) (capiexp.MachinePool, error)
- func ToMap(v interface{}) (map[string]interface{}, error)
- func ToNodeCount(v interface{}) (int, error)
- func ToOldExpMachinePool(v interface{}) (oldcapiexp.MachinePool, error)
- func ToOperatorVersion(v interface{}) (string, error)
- func ToParameters(list ...map[string]interface{}) map[string]interface{}
- func ToString(v interface{}) (string, error)
- func VNetGatewaySubnetName() string
- func VPNGatewayName(customObject providerv1alpha1.AzureConfig) string
- func VPNGatewayPublicIPName(customObject providerv1alpha1.AzureConfig) string
- func VnetCIDR(customObject providerv1alpha1.AzureConfig) string
- func VnetName(customObject providerv1alpha1.AzureConfig) string
- func WorkerBlobName(operatorVersion string) string
- func WorkerCount(customObject providerv1alpha1.AzureConfig) int
- func WorkerInstanceName(clusterID, instanceID string) string
- func WorkerSecurityGroupName(customObject providerv1alpha1.AzureConfig) string
- func WorkerSubnetName(customObject providerv1alpha1.AzureConfig) string
- func WorkerVMSSName(customObject providerv1alpha1.AzureConfig) string
- func WorkersEgressExistingPublicIP(customObject providerv1alpha1.AzureConfig) string
- func WorkersSubnetCIDR(customObject providerv1alpha1.AzureConfig) string
- type AnnotationsGetter
- type DeletionTimestampGetter
- type LabelsGetter
Constants ¶
const ( // ComponentKubernetes is the name of the component specified in a Release // CR which determines the version of the Kubernetes to be used for tenant // cluster nodes. ComponentKubernetes = "kubernetes" // 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" // TerminateUnhealthyNodeResyncPeriod defines resync period for the terminateunhealthynode controller TerminateUnhealthyNodeResyncPeriod = time.Minute * 3 )
const ( MastersVmssDeploymentName = "masters-vmss-template" // Kept for the sake of compiling old instance resource. It should be removed as soon as // instance resource is removed. WorkersVmssDeploymentName = "workers-vmss-template" CloudConfigSecretKey = "ignitionBlob" 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 )
Variables ¶
This section is empty.
Functions ¶
func APISecurePort ¶
func APISecurePort(customObject providerv1alpha1.AzureConfig) int
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 AzureMachineName ¶ added in v5.1.0
func AzureMachineName(getter LabelsGetter) string
func BlobContainerName ¶
func BlobContainerName() string
func BlobName ¶
func BlobName(customObject LabelsGetter, role string) string
func BootstrapBlobName ¶
func BootstrapBlobName(customObject capzexp.AzureMachinePool) string
func CGroupVersion ¶ added in v5.16.0
func CGroupVersion(machinePool *capiexp.MachinePool) 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 ClusterIPRange ¶
func ClusterIPRange(customObject providerv1alpha1.AzureConfig) 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 DNSZones ¶
func DNSZones(customObject providerv1alpha1.AzureConfig) providerv1alpha1.AzureConfigSpecAzureDNSZones
func DefaultVersions ¶
func DefaultVersions() k8scloudconfig.Versions
func EncryptionConfigSecretName ¶ added in v5.21.0
func HealthCheckTarget ¶
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 IsExecutionFailed ¶ added in v5.1.0
IsExecutionFailed asserts executionFailedError.
func IsMissingMachinePoolLabelError ¶
IsMissingMachinePoolLabelError asserts missingMachinePoolLabelError.
func IsMissingOutputValue ¶
IsMissingOutputValue asserts missingOutputValueError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func KubeletLabelsNodePool ¶
func KubeletLabelsNodePool(getter LabelsGetter) (string, error)
These are the same labels that kubernetesd adds when creating/updating an AzureConfig.
func KubernetesVersion ¶
func KubernetesVersion(release releasev1alpha1.Release) (string, error)
func MachinePoolID ¶
func MachinePoolID(getter LabelsGetter) (string, error)
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 MasterNatGatewayID ¶
func MasterNatGatewayID(cr providerv1alpha1.AzureConfig, subscriptionID string) string
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 MasterSubnetNameFromClusterAPIObject ¶ added in v5.1.0
func MasterSubnetNameFromClusterAPIObject(getter LabelsGetter) string
func MasterVMSSName ¶
func MasterVMSSName(customObject providerv1alpha1.AzureConfig) string
func MasterVMSSNameFromClusterAPIObject ¶ added in v5.1.0
func MasterVMSSNameFromClusterAPIObject(getter LabelsGetter) string
func MastersSubnetCIDR ¶
func MastersSubnetCIDR(customObject providerv1alpha1.AzureConfig) string
func NodePoolDeploymentName ¶
func NodePoolDeploymentName(azureMachinePool *capzexp.AzureMachinePool) string
func NodePoolInstanceName ¶
func NodePoolMaxReplicas ¶
func NodePoolMaxReplicas(machinePool *capiexp.MachinePool) int32
func NodePoolMinReplicas ¶
func NodePoolMinReplicas(machinePool *capiexp.MachinePool) int32
func NodePoolSpotInstancesEnabled ¶ added in v5.4.0
func NodePoolSpotInstancesEnabled(azureMachinePool *capzexp.AzureMachinePool) bool
func NodePoolSpotInstancesMaxPrice ¶ added in v5.4.0
func NodePoolSpotInstancesMaxPrice(azureMachinePool *capzexp.AzureMachinePool) string
func NodePoolVMSSName ¶
func NodePoolVMSSName(azureMachinePool *capzexp.AzureMachinePool) string
func OperatorVersion ¶
func OperatorVersion(getter LabelsGetter) string
func OrganizationID ¶
func OrganizationID(getter LabelsGetter) string
func OrganizationNamespace ¶
func OrganizationNamespace(getter LabelsGetter) string
func PrefixMaster ¶
func PrefixMaster() string
func PrefixWorker ¶
func PrefixWorker() string
func ReleaseName ¶
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 ScalingMaxWorkers ¶
func ScalingMaxWorkers(customObject providerv1alpha1.AzureConfig) int
func ScalingMinWorkers ¶
func ScalingMinWorkers(customObject providerv1alpha1.AzureConfig) int
func StorageAccountName ¶
func StorageAccountName(customObject LabelsGetter) string
func SubnetDeploymentName ¶
func ToAzureCluster ¶
func ToAzureCluster(v interface{}) (capz.AzureCluster, error)
func ToAzureMachine ¶ added in v5.1.0
func ToAzureMachine(v interface{}) (capz.AzureMachine, error)
func ToAzureMachinePool ¶
func ToAzureMachinePool(v interface{}) (capzexp.AzureMachinePool, error)
func ToClusterEndpoint ¶
func ToClusterID ¶
func ToClusterKubernetesSSHUser ¶
func ToClusterKubernetesSSHUser(s employees.SSHUserList) []v1alpha1.ClusterKubernetesSSHUser
func ToClusterStatus ¶
func ToClusterStatus(v interface{}) (providerv1alpha1.StatusCluster, error)
func ToCustomResource ¶
func ToCustomResource(v interface{}) (providerv1alpha1.AzureConfig, error)
func ToKeyValue ¶
func ToMachinePool ¶
func ToMachinePool(v interface{}) (capiexp.MachinePool, error)
func ToNodeCount ¶
func ToOldExpMachinePool ¶ added in v5.19.0
func ToOldExpMachinePool(v interface{}) (oldcapiexp.MachinePool, error)
func ToOperatorVersion ¶
func ToParameters ¶
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 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 VPNGatewayPublicIPName ¶ added in v5.6.0
func VPNGatewayPublicIPName(customObject providerv1alpha1.AzureConfig) string
func VnetCIDR ¶
func VnetCIDR(customObject providerv1alpha1.AzureConfig) string
func VnetName ¶
func VnetName(customObject providerv1alpha1.AzureConfig) string
VnetName returns name of the virtual network.
func WorkerBlobName ¶
func WorkerCount ¶
func WorkerCount(customObject providerv1alpha1.AzureConfig) int
WorkerCount returns the desired number of workers. Kept for the sake of compiling old instance resource. It should be removed as soon as instance resource is removed.
func WorkerInstanceName ¶
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 WorkersEgressExistingPublicIP ¶ added in v5.8.0
func WorkersEgressExistingPublicIP(customObject providerv1alpha1.AzureConfig) string
func WorkersSubnetCIDR ¶
func WorkersSubnetCIDR(customObject providerv1alpha1.AzureConfig) string