azure

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	InternalSecurityGroupSuffix = "-nsg"
	ExternalSecurityGroupSuffix = "-submariner-external-sg"
	InternalSecurityRulePrefix  = "Submariner-Internal-"
	ExternalSecurityRulePrefix  = "Submariner-External-"
)
View Source
const (
	AzureVirtualMachines = "virtualMachines"
)

Variables

This section is empty.

Functions

func MachineName added in v0.13.1

func MachineName(region string) string

MachineName generates a machine name for the gateway. The name length is limited to 20 characters to ensure we don't hit the 63-character limit when generating the "machine public IP name". At most 7 characters for the region, at most 13 for the region and a randomly generated UUID. We add "subgw-", 6 characters, for a total of 20 with the hyphen between region and UUID.

func NewCloud

func NewCloud(info *CloudInfo) api.Cloud

NewCloud creates a new api.Cloud instance which can prepare Azure for Submariner to be deployed on it.

func NewOcpGatewayDeployer

func NewOcpGatewayDeployer(info *CloudInfo, msDeployer ocp.MachineSetDeployer, instanceType string) api.GatewayDeployer

NewOcpGatewayDeployer returns a GatewayDeployer capable deploying gateways using OCP.

Types

type CloudInfo

type CloudInfo struct {
	SubscriptionID  string
	InfraID         string
	Region          string
	BaseGroupName   string
	TokenCredential azcore.TokenCredential
	K8sClient       k8s.Interface
	ClientOptions   *arm.ClientOptions
}

Jump to

Keyboard shortcuts

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