subnet

package
v7.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "subnet"
)

Variables

This section is empty.

Functions

func IsInvalidConfigError

func IsInvalidConfigError(err error) bool

IsInvalidConfigError asserts invalidConfigError.

func IsMissingOrganizationLabel

func IsMissingOrganizationLabel(err error) bool

IsMissingOrganizationLabel asserts missingOrganizationLabel.

func IsMissingOutputValue

func IsMissingOutputValue(err error) bool

IsMissingOutputValue asserts missingOutputValueError.

func IsNatGatewayNotReadyError

func IsNatGatewayNotReadyError(err error) bool

IsNatGatewayNotReadyError asserts natGatewayNotReadyError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsStorageAccountNotFound

func IsStorageAccountNotFound(err error) bool

IsStorageAccountNotFound asserts storage account not found error from Azure API message.

func IsSubnetInUse

func IsSubnetInUse(err error) bool

IsSubnetInUse asserts subnet in use error from Azure API message.

func IsTooManyCredentialsError

func IsTooManyCredentialsError(err error) bool

IsTooManyCredentialsError asserts tooManyCredentialsError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type Config

type Config struct {
	AzureClientsFactory client.OrganizationFactory
	CtrlClient          ctrlclient.Client
	Debugger            *debugger.Debugger
	Logger              micrologger.Logger
}

type Resource

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

Resource creates a different subnet for every node pool using ARM deployments.

func New

func New(config Config) (*Resource, error)

func (*Resource) EnsureCreated

func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error

For every subnet declared in the `AzureCluster.Spec.NetworkSpec.Subnets` field, we submit a deployment to Azure to create the subnet. The ipam handler is the one updating AzureCluster with the required subnets.

func (*Resource) EnsureDeleted

func (r *Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

EnsureDeleted is a noop since the deletion of deployments is redirected to the deletion of resource groups because they garbage collect them.

func (*Resource) Name

func (r *Resource) Name() string

Name returns the resource name.

type StorageAccountIpRule

type StorageAccountIpRule struct {
	Value  string `json:"value"`
	Action string `json:"action"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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