extensions

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyExtensions

func ApplyExtensions[t ExtendableT](ctx context.Context, cl client.Client, o t, konnectEnabled bool) (stop bool, res ctrl.Result, err error)

ApplyExtensions patches the dataplane or controlplane spec by taking into account customizations from the referenced extensions. In case any extension is referenced, it adds a resolvedRefs condition to the dataplane, indicating the status of the extension reference. it returns 3 values:

  • stop: a boolean indicating if the caller must return. It's true when the dataplane status has been patched.
  • res: a ctrl.Result indicating if the dataplane should be requeued. If the error was unexpected (e.g., because of API server error), the dataplane should be requeued. In case the error is related to a misconfiguration, the dataplane does not need to be requeued, and feedback is provided into the dataplane status.
  • err: an error in case of failure.

func MergeExtensions

func MergeExtensions(defaultExtensions, extensions []commonv1alpha1.ExtensionRef) []commonv1alpha1.ExtensionRef

MergeExtensions merges the default extensions with the extensions provided by the user. The provided extensions take precedence over the default extensions: in case the user provides an extension that is also present in the default extensions, the user's extension will be used.

Types

type ExtendableT

type ExtendableT interface {
	client.Object

	k8sutils.ConditionsAware

	*operatorv1beta1.DataPlane |
		*operatorv1beta1.ControlPlane |
		*operatorv1beta1.GatewayConfiguration
	// contains filtered or unexported methods
}

ExtendableT is the interface implemented by the objects which implementation can be extended through extensions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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