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 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
func (r *ClusterExtensionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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
func (d *DefaultInstalledBundleGetter) GetInstalledBundle(ctx context.Context, ext *ocv1alpha1.ClusterExtension) (*ocv1alpha1.BundleMetadata, error)
type InstalledBundleGetter ¶ added in v0.11.0
type InstalledBundleGetter interface {
GetInstalledBundle(ctx context.Context, ext *ocv1alpha1.ClusterExtension) (*ocv1alpha1.BundleMetadata, error)
}
Click to show internal directories.
Click to hide internal directories.