controllers

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "service.k-ngrok.io/controller"

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceReconciler

type ServiceReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	Recorder          record.EventRecorder
	LoadBalancerClass string
}

ServiceReconciler reconciles a Service object

func (*ServiceReconciler) Reconcile

func (r *ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr 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.

func (*ServiceReconciler) ServiceWithLoadBalancerClass

func (r *ServiceReconciler) ServiceWithLoadBalancerClass() predicate.Predicate

ServiceWithLoadBalancerClass returns predicate funcs that filter the service with given LoadBalancer class name on CREATE, UPDATE, DELETE and GENERIC events.

func (*ServiceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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