discoverymanager

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

package discoverymanager implements the utility functions for the discovery manager controller

Index

Constants

View Source
const (
	SERVER_ADDR       = "http://localhost:14144/api"
	K8S_TYPE          = "k8s-fluidos"
	DEFAULT_NAMESPACE = "default"
	CLIENT_ID         = "topix.fluidos.eu"
)

Variables

View Source
var (
	SERVER_ADDRESSES = []string{"http://localhost:14144/api"}
)

We define different server addresses, much more dynamic and less hardcoded

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. TODO(user): Modify the Reconcile function to compare the state specified by the Discovery object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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
}

func NewPCValidator

func NewPCValidator(client client.Client) *PCValidator

func (*PCValidator) DecodePeeringCandidate

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

func (*PCValidator) Handle

func (*PCValidator) HandleCreate

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

func (*PCValidator) HandleDelete

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

func (*PCValidator) HandleUpdate

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

Jump to

Keyboard shortcuts

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