controllers

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 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, bundleName string, deprecation *declcfg.Deprecation)

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

Types

type Applier added in v0.13.0

type Applier interface {
	Apply(context.Context, fs.FS, *ocv1alpha1.ClusterExtension, map[string]string) ([]client.Object, string, error)
}

type ClusterExtensionReconciler added in v0.9.0

type ClusterExtensionReconciler struct {
	client.Client
	Resolver resolve.Resolver
	Unpacker rukpaksource.Unpacker
	Applier  Applier
	Watcher  contentmanager.Watcher

	InstalledBundleGetter InstalledBundleGetter
	Finalizers            crfinalizer.Finalizers
	// contains filtered or unexported fields
}

ClusterExtensionReconciler reconciles a ClusterExtension object

func (*ClusterExtensionReconciler) Reconcile added in v0.9.0

The operator controller needs to watch all the bundle objects and reconcile accordingly. Though not ideal, but these permissions are required. This has been taken from rukpak, and an issue was created before to discuss it: https://github.com/operator-framework/rukpak/issues/800.

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 DefaultInstalledBundleGetter added in v0.11.0

type DefaultInstalledBundleGetter struct {
	helmclient.ActionClientGetter
}

func (*DefaultInstalledBundleGetter) GetInstalledBundle added in v0.11.0

type InstalledBundleGetter added in v0.11.0

type InstalledBundleGetter interface {
	GetInstalledBundle(ctx context.Context, ext *ocv1alpha1.ClusterExtension) (*ocv1alpha1.BundleMetadata, error)
}

Jump to

Keyboard shortcuts

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