controllers

package
v0.0.0-...-d8950e2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImage

func GetImage(apiReader client.Reader, key client.ObjectKey) (string, error)

GetImage returns the current pod's container image. This is intended to prepare the image name for EgressReconciler.

func SetupCRBReconciler

func SetupCRBReconciler(mgr manager.Manager) error

SetupCRBReconciler setups ClusterResourceBinding reconciler for egress-controller.

func SetupPodWatcher

func SetupPodWatcher(mgr ctrl.Manager, ns, name string, ft founat.FoUTunnel, eg founat.Egress) error

SetupPodWatcher registers pod watching reconciler to mgr.

Types

type EgressReconciler

type EgressReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Image  string
	Port   int32
}

EgressReconciler reconciles a Egress object

func (*EgressReconciler) Reconcile

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

Reconcile implements Reconciler interface. - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.1/pkg/reconcile

func (*EgressReconciler) SetupWithManager

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

SetupWithManager registers this with the manager.

Jump to

Keyboard shortcuts

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