azure

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MachineName added in v0.13.1

func MachineName(infraID, region, zone string) string

MachineName generates a machine name for the gateway. The name length is limited to 40 characters to ensure we don't hit the 63-character limit when generating the "machine public IP name". At most 6 characters for the zone (which is usually very short), at most 12 for the region and zone combined, at most 32 for the infra id, region and zone combined (the infra id is the longest significant piece of information here). We add "-subgw-", 7 characters, for a total of 40 with the hyphen between region and zone.

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, cloud api.Cloud, msDeployer ocp.MachineSetDeployer, instanceType string,
	dedicatedGWNode bool,
) (api.GatewayDeployer, error)

NewOcpGatewayDeployer returns a GatewayDeployer capable deploying gateways using OCP. If the supplied cloud is not an azureCloud, an error is returned.

Types

type CloudInfo

type CloudInfo struct {
	SubscriptionID string
	InfraID        string
	Region         string
	BaseGroupName  string
	Authorizer     autorest.Authorizer
	K8sClient      k8s.Interface
}

func (*CloudInfo) CreatePublicIP

func (c *CloudInfo) CreatePublicIP(ctx context.Context, ipName string, ipClient *network.PublicIPAddressesClient,
) (ip network.PublicIPAddress, err error)

func (*CloudInfo) DeletePublicIP

func (c *CloudInfo) DeletePublicIP(ctx context.Context, ipClient *network.PublicIPAddressesClient, ipName string,
) (err error)

Jump to

Keyboard shortcuts

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