tcnpazs

package
v12.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package tcnpazs implements a resource to gather all private subnets for the configured availability zones of a node pool. Like the clusterazs resource, we need logic to take the node pool subnet allocated by the ipam resource and split it according to the configured availability zones. We then have 1, 2 or 4 private subnet CIDRs we put into the controller context for further use in the tcnp resource. Note that the availability zones of a node pool cannot be updated upon creation due to the network splitting. In order to change availability zones one must delete and create node pools accordingly.

Index

Constants

View Source
const (
	Name = "tcnpazs"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	CtrlClient ctrlClient.Client
	Logger     micrologger.Logger
}

type Resource

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

func New

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

func (*Resource) EnsureCreated

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

func (*Resource) EnsureDeleted

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

func (*Resource) Name

func (r *Resource) Name() string

Jump to

Keyboard shortcuts

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