Documentation
¶
Index ¶
- type WireguardNodeReconciler
- func (r *WireguardNodeReconciler) Annotate(n *v1.Node) (bool, error)
- func (r *WireguardNodeReconciler) InjectClient(c client.Client) error
- func (r *WireguardNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *WireguardNodeReconciler) ReconcilePeer(peer *wgtypes.Peer, isDelete bool) error
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
Click to show internal directories.
Click to hide internal directories.