controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FailedAllocatingNetwork  = "FailedAllocating"
	FailedAllocatingPublicIP = "FailedAllocating"
)
View Source
const (
	DefaultMinVNI int32 = 200
	DefaultMaxVNI int32 = (1 << 24) - 1
)

Variables

This section is empty.

Functions

func APINetV1Alpha1IPsToNetIPAddrs

func APINetV1Alpha1IPsToNetIPAddrs(ips []onmetalapinetv1alpha1.IP) []netip.Addr

func IPFamilyBitLen

func IPFamilyBitLen(ipFamily corev1.IPFamily) uint8

func NetIPAddrsToAPINetV1Alpha1IPs

func NetIPAddrsToAPINetV1Alpha1IPs(addrs []netip.Addr) []onmetalapinetv1alpha1.IP

func PatchAddReconcileAnnotation

func PatchAddReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) error

func PatchRemoveReconcileAnnotation

func PatchRemoveReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) error

Types

type CertificateApprovalReconciler

type CertificateApprovalReconciler struct {
	client.Client

	Recognizers []generic.CertificateSigningRequestRecognizer
}

func (*CertificateApprovalReconciler) Reconcile

func (*CertificateApprovalReconciler) SetupWithManager

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

type NetworkReconciler

type NetworkReconciler struct {
	record.EventRecorder
	client.Client
	APIReader client.Reader

	MinVNI int32
	MaxVNI int32
	// contains filtered or unexported fields
}

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) error

type PublicIPReconciler

type PublicIPReconciler struct {
	record.EventRecorder
	client.Client
	APIReader           client.Reader
	InitialAvailableIPs *netipx.IPSet
	// contains filtered or unexported fields
}

func (*PublicIPReconciler) Reconcile

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

func (*PublicIPReconciler) SetupWithManager

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

Directories

Path Synopsis
certificate

Jump to

Keyboard shortcuts

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