key

package
v4.0.0-1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	ClusterIDLabel = "giantswarm.io/cluster"
)

Variables

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

Functions

func APISecurePort

func APISecurePort(customObject providerv1alpha1.AzureConfig) int

func ARMTemplateURI

func ARMTemplateURI(version, resource, template string) string

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 DefaultVersions

func DefaultVersions() v_6_0_0.Versions

func IsDeleted

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

func IsSucceededProvisioningState(s string) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

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 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 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.

Jump to

Keyboard shortcuts

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