Documentation
¶
Overview ¶
Package azure contains Azure-specific structures for installer configuration and management.
Index ¶
Constants ¶
const Name string = "azure"
Name is the name for the Azure platform.
const StackTerraformName string = "azurestack"
StackTerraformName is the name used for Terraform code when installing to the Azure Stack platform.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEnvironment ¶
type CloudEnvironment string
CloudEnvironment is the name of the Azure cloud environment +kubebuilder:validation:Enum="";AzurePublicCloud;AzureUSGovernmentCloud;AzureChinaCloud;AzureGermanCloud;AzureStackCloud
const ( // PublicCloud is the general-purpose, public Azure cloud environment. PublicCloud CloudEnvironment = "AzurePublicCloud" // USGovernmentCloud is the Azure cloud environment for the US government. USGovernmentCloud CloudEnvironment = "AzureUSGovernmentCloud" // ChinaCloud is the Azure cloud environment used in China. ChinaCloud CloudEnvironment = "AzureChinaCloud" // GermanCloud is the Azure cloud environment used in Germany. GermanCloud CloudEnvironment = "AzureGermanCloud" // StackCloud is the Azure cloud environment used at the edge and on premises. StackCloud CloudEnvironment = "AzureStackCloud" )
func (CloudEnvironment) Name ¶
func (e CloudEnvironment) Name() string
Name returns name that Azure uses for the cloud environment. See https://github.com/Azure/go-autorest/blob/ec5f4903f77ed9927ac95b19ab8e44ada64c1356/autorest/azure/environments.go#L13
type OutboundType ¶
type OutboundType string
OutboundType is a strategy for how egress from cluster is achieved. +kubebuilder:validation:Enum="";Loadbalancer;UserDefinedRouting
const ( // LoadbalancerOutboundType uses Standard loadbalancer for egress from the cluster. // see https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections#lb LoadbalancerOutboundType OutboundType = "Loadbalancer" // UserDefinedRoutingOutboundType uses user defined routing for egress from the cluster. // see https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview UserDefinedRoutingOutboundType OutboundType = "UserDefinedRouting" )
type Platform ¶
type Platform struct { // Region specifies the Azure region where the cluster will be created. Region string `json:"region"` // ARMEndpoint is the endpoint for the Azure API when installing on Azure Stack. ARMEndpoint string `json:"armEndpoint,omitempty"` // ClusterOSImage is the url of a storage blob in the Azure Stack environment containing an RHCOS VHD. This field is required for Azure Stack and not applicable to Azure. ClusterOSImage string `json:"clusterOSImage,omitempty"` // BaseDomainResourceGroupName specifies the resource group where the Azure DNS zone for the base domain is found. This field is optional when creating a private cluster, otherwise required. // // +optional BaseDomainResourceGroupName string `json:"baseDomainResourceGroupName,omitempty"` // NetworkResourceGroupName specifies the network resource group that contains an existing VNet // // +optional NetworkResourceGroupName string `json:"networkResourceGroupName,omitempty"` // VirtualNetwork specifies the name of an existing VNet for the installer to use // // +optional VirtualNetwork string `json:"virtualNetwork,omitempty"` // cloudName is the name of the Azure cloud environment which can be used to configure the Azure SDK // with the appropriate Azure API endpoints. // If empty, the value is equal to "AzurePublicCloud". // +optional CloudName CloudEnvironment `json:"cloudName,omitempty"` // OutboundType is a strategy for how egress from cluster is achieved. When not specified default is "Loadbalancer". // // +kubebuilder:default=Loadbalancer // +optional OutboundType OutboundType `json:"outboundType"` // ResourceGroupName is the name of an already existing resource group where the cluster should be installed. // This resource group should only be used for this specific cluster and the cluster components will assume // ownership of all resources in the resource group. Destroying the cluster using installer will delete this // resource group. // This resource group must be empty with no other resources when trying to use it for creating a cluster. // If empty, a new resource group will created for the cluster. // // +optional ResourceGroupName string `json:"resourceGroupName,omitempty"` }
Platform stores all the global configuration that all machinesets use.
func (*Platform) ClusterResourceGroupName ¶
ClusterResourceGroupName returns the name of the resource group for the cluster.
func (*Platform) SetBaseDomain ¶
SetBaseDomain parses the baseDomainID and sets the related fields on azure.Platform