controllers

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPlane

type DataPlane interface {
	DataPlaneClient
	DataPlaneStatusClient

	Listeners(ctx context.Context) ([]kong.ProxyListener, []kong.StreamListener, error)
}

DataPlane is a common interface that is used by reconcilers to interact with the Kong dataplane.

type DataPlaneClient

type DataPlaneClient interface {
	UpdateObject(obj client.Object) error
	DeleteObject(obj client.Object) error
	ObjectExists(obj client.Object) (bool, error)
}

DataPlaneClient is a common client interface that is used by reconcilers to interact with the Kong dataplane to perform CRUD operations on provided objects.

type DataPlaneStatusClient added in v3.1.0

type DataPlaneStatusClient interface {
	AreKubernetesObjectReportsEnabled() bool
	KubernetesObjectConfigurationStatus(obj client.Object) k8sobj.ConfigurationStatus
	KubernetesObjectIsConfigured(obj client.Object) bool
}

type OptionalNamespacedName added in v3.1.0

type OptionalNamespacedName struct {
	mo.Option[k8stypes.NamespacedName]
}

OptionalNamespacedName is a wrapper around mo.Option[k8stypes.NamespacedName] that provides additional Matches and MatchesNN methods for matching against client.Object and k8stypes.NamespacedName.

func NewOptionalNamespacedName added in v3.2.0

func NewOptionalNamespacedName(onn mo.Option[k8stypes.NamespacedName]) OptionalNamespacedName

NewOptionalNamespacedName creates a new OptionalNamespacedName with the provided value.

func (OptionalNamespacedName) Get added in v3.2.0

Get calls the underlying mo.Option.Get.

func (OptionalNamespacedName) IsPresent added in v3.2.0

func (onn OptionalNamespacedName) IsPresent() bool

IsPresent calls the underlying mo.Option.IsPresent.

func (OptionalNamespacedName) Matches added in v3.2.0

func (onn OptionalNamespacedName) Matches(obj client.Object) bool

Matches returns true if the OptionalNamespacedName is present and the provided object's namespace and name match the OptionalNamespacedName's namespace and name. It also returns true if the OptionalNamespacedName is not present as it is considered to match everything.

func (OptionalNamespacedName) MatchesNN added in v3.2.0

MatchesNN returns true if the OptionalNamespacedName is present and the provided k8stypes.NamespacedName matches the OptionalNamespacedName's namespace and name. It also returns true if the OptionalNamespacedName is not present as it is considered to match everything.

type Reconciler

type Reconciler interface {
	SetupWithManager(ctrl.Manager) error
	SetLogger(logr.Logger)
}

Directories

Path Synopsis
Package configuration contains Kubernetes controllers responsible for configuration.konghq.com grouped API types.
Package configuration contains Kubernetes controllers responsible for configuration.konghq.com grouped API types.

Jump to

Keyboard shortcuts

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