gateways_crd_watchdog

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "gateways-crd-watchdog"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

func Predicate

func Predicate() predicate.Predicate

Predicate returns the predicate to be considered for reconciliation.

Types

type CheckGatewayCRDsState

type CheckGatewayCRDsState struct {
	// contains filtered or unexported fields
}

CheckGatewayCRDsState contains the state of the gateway CRD check.

func CheckGatewayCRDs

func CheckGatewayCRDs(ctx context.Context, c client.Client) (*CheckGatewayCRDsState, error)

CheckGatewayCRDs checks for relevant gateway custom resource definition deployments.

func (*CheckGatewayCRDsState) IstioGatewayVersion

func (s *CheckGatewayCRDsState) IstioGatewayVersion() (istio_gateway.Version, error)

IstioGatewayVersion returns istio gateway version to watch.

func (*CheckGatewayCRDsState) KubernetesGatewayVersion

func (s *CheckGatewayCRDsState) KubernetesGatewayVersion() (k8s_gateway.Version, error)

KubernetesGatewayVersion returns Kubernetes Gateway API gateway version to watch.

func (*CheckGatewayCRDsState) VersionOnStartup

func (s *CheckGatewayCRDsState) VersionOnStartup(name string) string

VersionOnStartup return the version of the relevant CRD on startup.

type Reconciler

type Reconciler struct {
	Client client.Client

	CheckGatewayCRDsState CheckGatewayCRDsState
	ShutdownFunc          ShutdownFunc
	// contains filtered or unexported fields
}

Reconciler watches for relevant changes of gateway custom resource definitions.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile reconciles custom resource definition resources.

type ShutdownFunc

type ShutdownFunc func(log logr.Logger, msg string, keysAndValues ...any)

ShutdownFunc is a function called to shut down with message

Jump to

Keyboard shortcuts

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