controllers

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CIPFinalizer = "ip.ipam.metal.ironcore.dev/finalizer"

	CIPReservationFailureReason = "IPReservationFailure"
	CIPProposalFailureReason    = "IPProposalFailure"
	CIPReservationSuccessReason = "IPReservationSuccess"
	CIPReleaseSuccessReason     = "IPReleaseSuccess"

	IPFamilyLabelKey = "ip.ipam.metal.ironcore.dev/ip-family"
)
View Source
const (
	CNetworkFinalizer = "network.ipam.metal.ironcore.dev/finalizer"

	CNetworkIDProposalFailureReason    = "NetworkIDProposalFailure"
	CNetworkIDReservationFailureReason = "NetworkIDReservationFailure"
	CNetworkIDReservationSuccessReason = "NetworkIDReservationSuccess"
	CNetworkIDReleaseSuccessReason     = "NetworkIDReleaseSuccess"

	CFailedTopLevelSubnetIndexKey = "failedTopLevelSubnet"
)
View Source
const (
	CVXLANCounterName  = "k8s-vxlan-network-counter"
	CGENEVECounterName = "k8s-geneve-network-counter"
	CMPLSCounterName   = "k8s-mpls-network-counter"

	CFailedNetworkOfTypeIndexKey = "failedNetworkOfType"
)
View Source
const (
	CSubnetFinalizer = "subnet.ipam.metal.ironcore.dev/finalizer"

	CSubnetFinalizationSuccessReason = "SubnetFinalizationSuccess"

	CTopSubnetReservationFailureReason = "TopSubnetReservationFailure"
	CTopSubnetReservationSuccessReason = "TopSubnetReservationSuccess"
	CTopSubnetReleaseSuccessReason     = "TopSubnetReleaseSuccess"

	CChildSubnetAZScopeFailureReason      = "ChildSubnetAZScopeFailure"
	CChildSubnetRegionScopeFailureReason  = "ChildSubnetRegionScopeFailure"
	CChildSubnetCIDRProposalFailureReason = "ChildSubnetCIDRProposalFailure"
	CChildSubnetReservationFailureReason  = "ChildSubnetReservationFailure"
	CChildSubnetReservationSuccessReason  = "ChildSubnetReservationSuccess"
	CChildSubnetReleaseSuccessReason      = "ChildSubnetReleaseSuccess"

	CFailedChildSubnetIndexKey = "failedChildSubnet"
	CFailedIPIndexKey          = "failedIP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPReconciler

type IPReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	EventRecorder record.EventRecorder
}

IPReconciler reconciles a Ip object

func (*IPReconciler) Reconcile

func (r *IPReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*IPReconciler) SetupWithManager

func (r *IPReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NetworkCounterReconciler

type NetworkCounterReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	EventRecorder record.EventRecorder
}

NetworkCounterReconciler reconciles a NetworkCounter object

func (*NetworkCounterReconciler) Reconcile

func (*NetworkCounterReconciler) SetupWithManager

func (r *NetworkCounterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NetworkReconciler

type NetworkReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	EventRecorder record.EventRecorder
}

NetworkReconciler reconciles a Network object

func (*NetworkReconciler) Reconcile

func (r *NetworkReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NetworkReconciler) SetupWithManager

func (r *NetworkReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SubnetReconciler

type SubnetReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	EventRecorder record.EventRecorder
}

SubnetReconciler reconciles a Subnet object

func (*SubnetReconciler) Reconcile

func (r *SubnetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile

func (*SubnetReconciler) SetupWithManager

func (r *SubnetReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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