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.