controllers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetalnetFieldOwner = client.FieldOwner("metalnetlet.apinet.ironcore.dev/controller-manager")

	PartitionFieldOwnerPrefix = "partition.metalnetlet.apinet.ironcore.dev/"

	PartitionFinalizerPrefix = "partition.metalnetlet.apinet.ironcore.dev/"
)

Variables

This section is empty.

Functions

func EqualMetalnetLoadBalancers

func EqualMetalnetLoadBalancers(inst1, inst2 *metalnetv1alpha1.LoadBalancer) bool

func GetMetalnetNode

func GetMetalnetNode(ctx context.Context, partitionName string, metalnetClient client.Client, nodeName string) (*corev1.Node, error)

func IsNodeOnPartitionPredicate

func IsNodeOnPartitionPredicate(partitionName string) predicate.Predicate

func ParseNodeName

func ParseNodeName(partitionName, nodeName string) (string, error)

func PartitionFieldOwner

func PartitionFieldOwner(partitionName string) client.FieldOwner

func PartitionFinalizer

func PartitionFinalizer(partitionName string) string

func PartitionNodeName

func PartitionNodeName(partitionName, metalnetNodeName string) string

Types

type InstanceReconciler

type InstanceReconciler struct {
	client.Client
	MetalnetClient client.Client

	PartitionName string

	MetalnetNamespace string
}

func (*InstanceReconciler) Reconcile

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

func (*InstanceReconciler) SetupWithManager

func (r *InstanceReconciler) SetupWithManager(mgr ctrl.Manager, metalnetCache cache.Cache) error

type MetalnetNodeReconciler

type MetalnetNodeReconciler struct {
	client.Client
	MetalnetClient client.Client
	PartitionName  string
	NodeLabels     map[string]string
}

func (*MetalnetNodeReconciler) Reconcile

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

Reconcile ensures that the node is in the expected state.

func (*MetalnetNodeReconciler) SetupWithManager

func (r *MetalnetNodeReconciler) SetupWithManager(mgr ctrl.Manager, metalnetCache cache.Cache) error

type NetworkInterfaceReconciler

type NetworkInterfaceReconciler struct {
	client.Client
	MetalnetClient client.Client

	PartitionName string

	MetalnetNamespace string
}

func (*NetworkInterfaceReconciler) Reconcile

func (*NetworkInterfaceReconciler) SetupWithManager

func (r *NetworkInterfaceReconciler) SetupWithManager(mgr ctrl.Manager, metalnetCache cache.Cache) error

type NetworkReconciler

type NetworkReconciler struct {
	client.Client
	MetalnetClient client.Client

	PartitionName string

	MetalnetNamespace string
}

func (*NetworkReconciler) Reconcile

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

func (*NetworkReconciler) SetupWithManager

func (r *NetworkReconciler) SetupWithManager(mgr ctrl.Manager, metalnetCache cache.Cache) error

Jump to

Keyboard shortcuts

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