Documentation ¶
Index ¶
- Constants
- Variables
- func APISecurePort(customObject providerv1alpha1.AzureConfig) int
- func ARMTemplateURI(version, resource, template string) string
- func AdminSSHKeyData(customObject providerv1alpha1.AzureConfig) string
- func AdminUsername(customObject providerv1alpha1.AzureConfig) string
- func AvailabilityZones(customObject providerv1alpha1.AzureConfig, location string) []int
- func BlobContainerName() string
- func BlobName(customObject providerv1alpha1.AzureConfig, role string) string
- func CertificateEncryptionSecretName(customObject providerv1alpha1.AzureConfig) string
- func CloudConfigSmallTemplates() []string
- func ClusterAPIEndpoint(customObject providerv1alpha1.AzureConfig) string
- func ClusterCustomer(customObject providerv1alpha1.AzureConfig) string
- func ClusterDNSDomain(customObject providerv1alpha1.AzureConfig) string
- func ClusterEtcdDomain(customObject providerv1alpha1.AzureConfig) string
- func ClusterID(customObject providerv1alpha1.AzureConfig) string
- func ClusterNamespace(customObject providerv1alpha1.AzureConfig) string
- func ClusterOrganization(customObject providerv1alpha1.AzureConfig) string
- func ClusterTags(customObject providerv1alpha1.AzureConfig, installationName string) map[string]*string
- 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() v_6_0_0.Versions
- func IsDeleted(customObject providerv1alpha1.AzureConfig) bool
- func IsFailedProvisioningState(s string) bool
- func IsFinalProvisioningState(s string) bool
- func IsMissingOutputValue(err error) bool
- func IsSucceededProvisioningState(s string) bool
- func IsWrongTypeError(err error) bool
- func LegacyMasterVMSSName(customObject providerv1alpha1.AzureConfig) string
- func LegacyWorkerInstanceName(customObject providerv1alpha1.AzureConfig, instanceID string) string
- func LegacyWorkerVMSSName(customObject providerv1alpha1.AzureConfig) string
- func MasterInstanceName(customObject providerv1alpha1.AzureConfig, instanceID string) string
- func MasterNICName(customObject providerv1alpha1.AzureConfig) string
- func MasterSecurityGroupName(customObject providerv1alpha1.AzureConfig) string
- func MasterSubnetName(customObject providerv1alpha1.AzureConfig) string
- func MasterVMSSName(customObject providerv1alpha1.AzureConfig) string
- func OperatorVersion(cr providerv1alpha1.AzureConfig) string
- func PrefixMaster() string
- func PrefixWorker() string
- func ResourceGroupName(customObject providerv1alpha1.AzureConfig) string
- func RouteTableName(customObject providerv1alpha1.AzureConfig) string
- func StorageAccountName(customObject providerv1alpha1.AzureConfig) string
- func ToClusterEndpoint(v interface{}) (string, error)
- func ToClusterID(v interface{}) (string, error)
- func ToClusterStatus(v interface{}) (providerv1alpha1.StatusCluster, error)
- func ToCustomResource(v interface{}) (providerv1alpha1.AzureConfig, error)
- func ToKeyValue(m map[string]interface{}) (interface{}, error)
- func ToMap(v interface{}) (map[string]interface{}, error)
- func ToNodeCount(v interface{}) (int, error)
- func ToOperatorVersion(v interface{}) (string, error)
- func ToParameters(list ...map[string]interface{}) map[string]interface{}
- func ToString(v interface{}) (string, error)
- func ToStringMap(v interface{}) (map[string]string, error)
- func VNetGatewaySubnetName() string
- func VNetID(customObject providerv1alpha1.AzureConfig, subscriptionID string) string
- func VPNGatewayName(customObject providerv1alpha1.AzureConfig) string
- func VnetCIDR(customObject providerv1alpha1.AzureConfig) string
- func VnetName(customObject providerv1alpha1.AzureConfig) string
- func WorkerCount(customObject providerv1alpha1.AzureConfig) int
- func WorkerInstanceName(customObject providerv1alpha1.AzureConfig, instanceID string) string
- func WorkerSecurityGroupName(customObject providerv1alpha1.AzureConfig) string
- func WorkerSubnetName(customObject providerv1alpha1.AzureConfig) string
- func WorkerVMSSName(customObject providerv1alpha1.AzureConfig) string
Constants ¶
const ( MastersVmssDeploymentName = "masters-vmss-template" WorkersVmssDeploymentName = "workers-vmss-template" TemplateContentVersion = "1.0.0.0" 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" )
const (
ClusterIDLabel = "giantswarm.io/cluster"
)
Variables ¶
var (
LocationsThatDontSupportAZs = []string{
"germanywestcentral",
}
)
Functions ¶
func APISecurePort ¶
func APISecurePort(customObject providerv1alpha1.AzureConfig) int
func ARMTemplateURI ¶
ARMTemplateURI returns URI to a resource's template file. The returned URI point to a file hosted on github in this repository under a controller resource's template folder at:
service/controller/resource/<resource>/template/<template>
version refers to a branch or commit. resource refers to directory name of the resource. template refers to filename under resource's template folder.
e.g. ARMTemplateURI("master", "deployment", "main.json")
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 BlobContainerName ¶
func BlobContainerName() string
func BlobName ¶
func BlobName(customObject providerv1alpha1.AzureConfig, role string) string
func CertificateEncryptionSecretName ¶
func CertificateEncryptionSecretName(customObject providerv1alpha1.AzureConfig) string
func CloudConfigSmallTemplates ¶
func CloudConfigSmallTemplates() []string
func ClusterAPIEndpoint ¶
func ClusterAPIEndpoint(customObject providerv1alpha1.AzureConfig) 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(customObject providerv1alpha1.AzureConfig) string
ClusterID returns the unique ID for this cluster.
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 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 IsDeleted ¶
func IsDeleted(customObject providerv1alpha1.AzureConfig) bool
func IsMissingOutputValue ¶
IsMissingOutputValue asserts missingOutputValueError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func LegacyMasterVMSSName ¶
func LegacyMasterVMSSName(customObject providerv1alpha1.AzureConfig) string
func LegacyWorkerInstanceName ¶
func LegacyWorkerInstanceName(customObject providerv1alpha1.AzureConfig, instanceID string) string
func LegacyWorkerVMSSName ¶
func LegacyWorkerVMSSName(customObject providerv1alpha1.AzureConfig) 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 OperatorVersion ¶
func OperatorVersion(cr providerv1alpha1.AzureConfig) string
func PrefixMaster ¶
func PrefixMaster() string
func PrefixWorker ¶
func PrefixWorker() 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 providerv1alpha1.AzureConfig) string
func ToClusterEndpoint ¶
func ToClusterID ¶
func ToClusterStatus ¶
func ToClusterStatus(v interface{}) (providerv1alpha1.StatusCluster, error)
func ToCustomResource ¶
func ToCustomResource(v interface{}) (providerv1alpha1.AzureConfig, error)
func ToKeyValue ¶
func ToNodeCount ¶
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 ToStringMap ¶
func VNetGatewaySubnetName ¶
func VNetGatewaySubnetName() string
VNetGatewaySubnetName returns the name of the subnet for the vpn gateway.
func VNetID ¶
func VNetID(customObject providerv1alpha1.AzureConfig, subscriptionID string) string
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
Types ¶
This section is empty.