controllers

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDeprecationStatus added in v0.10.0

func SetDeprecationStatus(ext *ocv1alpha1.ClusterExtension, bundle *catalogmetadata.Bundle)

setDeprecationStatus will set the appropriate deprecation statuses for a ClusterExtension based on the provided bundle

func SetDeprecationStatusInExtension added in v0.10.0

func SetDeprecationStatusInExtension(ext *ocv1alpha1.Extension, bundle *catalogmetadata.Bundle)

setDeprecationStatus will set the appropriate deprecation statuses for a Extension based on the provided bundle

func SuccessorsPredicate added in v0.10.0

func SuccessorsPredicate(installedBundle *catalogmetadata.Bundle) (catalogfilter.Predicate[catalogmetadata.Bundle], error)

Types

type BundleProvider added in v0.8.0

type BundleProvider interface {
	Bundles(ctx context.Context) ([]*catalogmetadata.Bundle, error)
}

BundleProvider provides the way to retrieve a list of Bundles from a source, generally from a catalog client of some kind.

type ClusterExtensionReconciler added in v0.9.0

type ClusterExtensionReconciler struct {
	client.Client
	BundleProvider BundleProvider
}

ClusterExtensionReconciler reconciles a ClusterExtension object

func (*ClusterExtensionReconciler) GenerateExpectedBundleDeployment added in v0.10.0

func (r *ClusterExtensionReconciler) GenerateExpectedBundleDeployment(o ocv1alpha1.ClusterExtension, bundlePath string, bundleProvisioner string) *unstructured.Unstructured

func (*ClusterExtensionReconciler) Reconcile added in v0.9.0

func (*ClusterExtensionReconciler) SetupWithManager added in v0.9.0

func (r *ClusterExtensionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ExtensionReconciler added in v0.10.0

type ExtensionReconciler struct {
	client.Client
	BundleProvider BundleProvider
}

ExtensionReconciler reconciles a Extension object

func (*ExtensionReconciler) GenerateExpectedApp added in v0.10.0

func (*ExtensionReconciler) Reconcile added in v0.10.0

func (r *ExtensionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ExtensionReconciler) SetupWithManager added in v0.10.0

func (r *ExtensionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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