controllers

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ClusterExtensionCleanupUnpackCacheFinalizer         = "olm.operatorframework.io/cleanup-unpack-cache"
	ClusterExtensionCleanupContentManagerCacheFinalizer = "olm.operatorframework.io/cleanup-contentmanager-cache"
)

Variables

This section is empty.

Functions

func SetDeprecationStatus added in v0.10.0

func SetDeprecationStatus(ext *ocv1.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 applies the content in the provided fs.FS using the configuration of the provided ClusterExtension.
	// It also takes in a map[string]string to be applied to all applied resources as labels and another
	// map[string]string used to create a unique identifier for a stored reference to the resources created.
	Apply(context.Context, fs.FS, *ocv1.ClusterExtension, map[string]string, map[string]string) ([]client.Object, string, error)
}

type CatalogCache added in v0.18.0

type CatalogCache interface {
	Get(catalogName, resolvedRef string) (fs.FS, error)
	Remove(catalogName string) error
}

type CatalogCachePopulator added in v0.18.0

type CatalogCachePopulator interface {
	PopulateCache(ctx context.Context, catalog *catalogd.ClusterCatalog) (fs.FS, error)
}

type ClusterCatalogReconciler added in v0.16.0

type ClusterCatalogReconciler struct {
	client.Client
	CatalogCache          CatalogCache
	CatalogCachePopulator CatalogCachePopulator
}

ClusterCatalogReconciler reconciles a ClusterCatalog object

func (*ClusterCatalogReconciler) Reconcile added in v0.16.0

func (*ClusterCatalogReconciler) SetupWithManager added in v0.16.0

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

SetupWithManager sets up the controller with the Manager.

type ClusterExtensionReconciler added in v0.9.0

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

	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 InstalledBundle added in v0.17.0

type InstalledBundle struct {
	ocv1.BundleMetadata
	Image string
}

type InstalledBundleGetter added in v0.11.0

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

type PullSecretReconciler added in v0.17.0

type PullSecretReconciler struct {
	client.Client
	SecretKey    types.NamespacedName
	AuthFilePath string
}

PullSecretReconciler reconciles a specific Secret object that contains global pull secrets for pulling bundle images

func (*PullSecretReconciler) Reconcile added in v0.17.0

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

func (*PullSecretReconciler) SetupWithManager added in v0.17.0

func (r *PullSecretReconciler) 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