clientoperator

package
v0.11.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package clientoperator contains the logic to manage the gateway clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientReconciler

type ClientReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	DynClient       dynamic.Interface
	Factory         *dynamicutils.RunnableFactory
	ClientResources []string
}

ClientReconciler manage GatewayClient lifecycle.

func NewClientReconciler

func NewClientReconciler(cl client.Client, dynClient dynamic.Interface,
	factory *dynamicutils.RunnableFactory, s *runtime.Scheme,
	clientResources []string) *ClientReconciler

NewClientReconciler returns a new ClientReconciler.

func (*ClientReconciler) EnsureGatewayClient

func (r *ClientReconciler) EnsureGatewayClient(ctx context.Context, gwClient *networkingv1alpha1.GatewayClient) error

EnsureGatewayClient ensures the GatewayClient is correctly configured.

func (*ClientReconciler) Reconcile

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

Reconcile manage GatewayClient lifecycle.

func (*ClientReconciler) SetupWithManager

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

SetupWithManager register the ClientReconciler to the manager.

Jump to

Keyboard shortcuts

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