reconciling

package
v0.0.0-...-d003438 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIExportObjectWrapper

func APIExportObjectWrapper(reconciler APIExportReconciler) reconciling.ObjectReconciler

APIExportObjectWrapper adds a wrapper so the APIExportReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func APIResourceSchemaObjectWrapper

func APIResourceSchemaObjectWrapper(reconciler APIResourceSchemaReconciler) reconciling.ObjectReconciler

APIResourceSchemaObjectWrapper adds a wrapper so the APIResourceSchemaReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func ReconcileAPIExports

func ReconcileAPIExports(ctx context.Context, namedFactories []NamedAPIExportReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileAPIExports will create and update the APIExports coming from the passed APIExportReconciler slice.

func ReconcileAPIResourceSchemas

func ReconcileAPIResourceSchemas(ctx context.Context, namedFactories []NamedAPIResourceSchemaReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileAPIResourceSchemas will create and update the APIResourceSchemas coming from the passed APIResourceSchemaReconciler slice.

Types

type APIExportReconciler

type APIExportReconciler = func(existing *kcpdevv1alpha1.APIExport) (*kcpdevv1alpha1.APIExport, error)

APIExportReconciler defines an interface to create/update APIExports.

type APIResourceSchemaReconciler

type APIResourceSchemaReconciler = func(existing *kcpdevv1alpha1.APIResourceSchema) (*kcpdevv1alpha1.APIResourceSchema, error)

APIResourceSchemaReconciler defines an interface to create/update APIResourceSchemas.

type NamedAPIExportReconcilerFactory

type NamedAPIExportReconcilerFactory = func() (name string, reconciler APIExportReconciler)

NamedAPIExportReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedAPIResourceSchemaReconcilerFactory

type NamedAPIResourceSchemaReconcilerFactory = func() (name string, reconciler APIResourceSchemaReconciler)

NamedAPIResourceSchemaReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

Jump to

Keyboard shortcuts

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