controllers

package
v0.0.0-...-ccdb22c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WireguardNodeReconciler

type WireguardNodeReconciler struct {
	client.Client
	overlay.Config
	WgDevice *wgtypes.Device
	WgClient *wgctrl.Client
	// contains filtered or unexported fields
}

WireguardNodeReconciler is the controller for reconciling each node as a WireGuard peer in the cluster. There is a 1:1 relationship between a reconciler and a specific node.

func (*WireguardNodeReconciler) Annotate

func (r *WireguardNodeReconciler) Annotate(n *v1.Node) (bool, error)

func (*WireguardNodeReconciler) InjectClient

func (r *WireguardNodeReconciler) InjectClient(c client.Client) error

InjectClient sets the kubeclient on the controller

func (*WireguardNodeReconciler) Reconcile

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

Reconcile receives events from the kube-apiserver to reconcile the state of the given node

func (*WireguardNodeReconciler) ReconcilePeer

func (r *WireguardNodeReconciler) ReconcilePeer(peer *wgtypes.Peer, isDelete bool) error

Jump to

Keyboard shortcuts

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