cluster

package
v0.0.0-...-4cb12bb Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 49 Imported by: 2

Documentation

Index

Constants

View Source
const GenerateSubnetMaxTries = 100

Variables

This section is empty.

Functions

func GetIPRangesFromSubnet

func GetIPRangesFromSubnet(subnet mgmtnetwork.Subnet) []*net.IPNet

GetIPRangesFromSubnet converts a given azure subnet to a list if IPNets. Because an az subnet can cover multiple ipranges, we need to return a slice instead of just a single ip range. This function never errors. If something goes wrong, it instead returns an empty list.

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

func New

func New(log *logrus.Entry, environment env.Core, ci bool) (*Cluster, error)

func (*Cluster) Create

func (c *Cluster) Create(ctx context.Context, vnetResourceGroup, clusterName string, osClusterVersion string) error

func (*Cluster) Delete

func (c *Cluster) Delete(ctx context.Context, vnetResourceGroup, clusterName string) error

type InternalClient

type InternalClient interface {
	Get(ctx context.Context, resourceGroupName string, resourceName string) (*api.OpenShiftCluster, error)
	CreateOrUpdateAndWait(ctx context.Context, resourceGroupName string, resourceName string, parameters *api.OpenShiftCluster) error
	DeleteAndWait(ctx context.Context, resourceGroupName string, resourceName string) error
}

func NewInternalClient

func NewInternalClient(log *logrus.Entry, environment env.Core, authorizer autorest.Authorizer) InternalClient

Jump to

Keyboard shortcuts

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