controllers

package
v0.0.0-...-46eb484 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GatewayArchMSE    = "mse"
	GatewayArchKongV1 = "nginx-kong.v1"
	GatewayArchKongV2 = "nginx-kong.v2"
)

Variables

This section is empty.

Functions

func GetListOptions

func GetListOptions(req *http.Request) []client.ListOption

Types

type ConfigZoneReconciler

type ConfigZoneReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Log           logr.Logger
	Reconciler    reconcile.Reconciler
	EventRecorder record.EventRecorder
}

ConfigZoneReconciler reconciles a ConfigZone object

func NewConfigZoneReconciler

func NewConfigZoneReconciler(cli client.Client, scheme *runtime.Scheme, log logr.Logger, eventRecord record.EventRecorder, options ...ReconcilerOption) *ConfigZoneReconciler

func (*ConfigZoneReconciler) Reconcile

func (r *ConfigZoneReconciler) 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 ConfigZone 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.12.2/pkg/reconcile

func (*ConfigZoneReconciler) ServeHTTP

func (r *ConfigZoneReconciler) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*ConfigZoneReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type HapiReconciler

type HapiReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Log           logr.Logger
	EventRecorder record.EventRecorder
	// contains filtered or unexported fields
}

HapiReconciler reconciles a Hapi object

func NewHapiReconciler

func NewHapiReconciler(cli client.Client, scheme *runtime.Scheme, log logr.Logger, recorder record.EventRecorder, options ...ReconcilerOption) *HapiReconciler

func (*HapiReconciler) Reconcile

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

func (*HapiReconciler) ServeHTTP

func (r *HapiReconciler) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*HapiReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type KongressReconciler

type KongressReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

KongressReconciler reconciles a Kongress object and is not implemented yet.

func (*KongressReconciler) Reconcile

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

Reconcile is not implemented yet

func (*KongressReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ReconcilerOption

type ReconcilerOption func(r interface{})

func WithGatewayArch

func WithGatewayArch(arch string) ReconcilerOption

Jump to

Keyboard shortcuts

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