infraflow

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// IdentifierRouter is the key for the router id
	IdentifierRouter = "Router"
	// IdentifierNetwork is the key for the network id
	IdentifierNetwork = "Network"
	// IdentifierSubnet is the key for the subnet id
	IdentifierSubnet = "Subnet"
	// IdentifierFloatingNetwork is the key for the floating network id
	IdentifierFloatingNetwork = "FloatingNetwork"
	// IdentifierSecGroup is the key for the security group id
	IdentifierSecGroup = "SecurityGroup"
	// IdentifierShareNetwork is the key for the share network id
	IdentifierShareNetwork = "ShareNetwork"

	// NameFloatingNetwork is the key for the floating network name
	NameFloatingNetwork = "FloatingNetworkName"
	// NameFloatingPoolSubnet is the name/regex for the floating pool subnets
	NameFloatingPoolSubnet = "FloatingPoolSubnetName"
	// NameNetwork is the name of the network
	NameNetwork = "NetworkName"
	// NameKeyPair is the key for the name of the EC2 key pair resource
	NameKeyPair = "KeyPair"
	// NameSecGroup is the name of the security group
	NameSecGroup = "SecurityGroupName"
	// NameShareNetwork is the name of the shared network
	NameShareNetwork = "ShareNetworkName"

	// RouterIP is the key for the router IP address
	RouterIP = "RouterIP"

	// ObjectSecGroup is the key for the cached security group
	ObjectSecGroup = "SecurityGroup"

	// CreatedResourcesExistKey marks that there are infrastructure resources created by Gardener.
	CreatedResourcesExistKey = "resource_exist"
)

Variables

View Source
var ErrorMultipleMatches = fmt.Errorf("error multiple matches")

ErrorMultipleMatches is returned when the findExisting finds multiple resources matching a name.

Functions

This section is empty.

Types

type FlowContext

type FlowContext struct {
	*shared.BasicFlowContext
	// contains filtered or unexported fields
}

FlowContext contains the logic to reconcile or delete the infrastructure.

func NewFlowContext

func NewFlowContext(opts Opts) (*FlowContext, error)

NewFlowContext creates a new FlowContext object

func (*FlowContext) Delete

func (fctx *FlowContext) Delete(ctx context.Context) error

Delete creates and runs the flow to delete the AWS infrastructure.

func (*FlowContext) Reconcile

func (fctx *FlowContext) Reconcile(ctx context.Context) error

Reconcile creates and runs the flow to reconcile the AWS infrastructure.

type Opts added in v1.41.0

type Opts struct {
	Log            logr.Logger
	ClientFactory  osclient.Factory
	Infrastructure *extensionsv1alpha1.Infrastructure
	Cluster        *extensionscontroller.Cluster
	State          *openstackapi.InfrastructureState
	Client         client.Client
}

Opts contain options to initiliaze a FlowContext

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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