k8s_gateway

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: 25 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "k8s-gateway-source"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

func Predicate

func Predicate[T client.Object](_ T, class string) predicate.Predicate

Predicate returns the predicate to be considered for reconciliation.

Types

type Reconciler

type Reconciler struct {
	common.ReconcilerBase

	ActiveVersion Version
}

Reconciler is a reconciler for provided Certificate resources.

func (*Reconciler) AddToManager

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

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Complete

func (r *Reconciler) Complete()

Complete implements the option completer.

func (*Reconciler) Reconcile

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

Reconcile reconciles Gateway resources.

type Version

type Version string

Version is the version of the istio gateway.

const (
	// VersionV1 is the v1 version of the Kubernetes Gateway API gateway.
	VersionV1 Version = "v1"
	// VersionV1beta1 is the v1beta1 version of the Kubernetes Gateway API gateway.
	VersionV1beta1 Version = "v1beta1"
	// VersionNone is zero version of the Kubernetes Gateway API gateway.
	VersionNone Version = ""
)

func GetPreferredVersion

func GetPreferredVersion(crd *apiextensionsv1.CustomResourceDefinition) Version

GetPreferredVersion retrieves the preferred version from the custom resource definition.

Jump to

Keyboard shortcuts

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