discoverymanager

package
v0.1.0-rc.1 Latest Latest
Warning

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

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

Documentation

Overview

Package discoverymanager implements the utility functions for the discovery manager controller

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryReconciler

type DiscoveryReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Gateway *gateway.Gateway
}

DiscoveryReconciler reconciles a Discovery object.

func (*DiscoveryReconciler) Reconcile

func (r *DiscoveryReconciler) 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.11.2/pkg/reconcile

func (*DiscoveryReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PCValidator

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

PCValidator is the PeerinCandidate validator.

func NewPCValidator

func NewPCValidator(c client.Client) *PCValidator

NewPCValidator creates a new PCValidator.

func (*PCValidator) DecodePeeringCandidate

func (v *PCValidator) DecodePeeringCandidate(obj runtime.RawExtension) (pc *advertisementv1alpha1.PeeringCandidate, err error)

DecodePeeringCandidate decodes the PeeringCandidate.

func (*PCValidator) Handle

Handle manages the validation of the PeeringCandidate.

func (*PCValidator) HandleCreate

func (v *PCValidator) HandleCreate(_ context.Context, req admission.Request) admission.Response

HandleCreate manages the validation of the PeeringCandidate creation.

func (*PCValidator) HandleDelete

func (v *PCValidator) HandleDelete(_ context.Context, req admission.Request) admission.Response

HandleDelete manages the validation of the PeeringCandidate deletion.

func (*PCValidator) HandleUpdate

func (v *PCValidator) HandleUpdate(_ context.Context, req admission.Request) admission.Response

HandleUpdate manages the validation of the PeeringCandidate update.

Jump to

Keyboard shortcuts

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