Documentation ¶
Index ¶
- func SetDeprecationStatus(ext *ocv1alpha1.ClusterExtension, bundle *catalogmetadata.Bundle)
- func SetDeprecationStatusInExtension(ext *ocv1alpha1.Extension, bundle *catalogmetadata.Bundle)
- func SuccessorsPredicate(installedBundle *catalogmetadata.Bundle) (catalogfilter.Predicate[catalogmetadata.Bundle], error)
- type BundleProvider
- type ClusterExtensionReconciler
- func (r *ClusterExtensionReconciler) GenerateExpectedBundleDeployment(o ocv1alpha1.ClusterExtension, bundlePath string, bundleProvisioner string) *unstructured.Unstructured
- func (r *ClusterExtensionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ClusterExtensionReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ExtensionReconciler
- func (r *ExtensionReconciler) GenerateExpectedApp(o ocv1alpha1.Extension, bundle *catalogmetadata.Bundle) (*unstructured.Unstructured, error)
- func (r *ExtensionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ExtensionReconciler) SetupWithManager(mgr ctrl.Manager) error
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) 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 (r *ExtensionReconciler) GenerateExpectedApp(o ocv1alpha1.Extension, bundle *catalogmetadata.Bundle) (*unstructured.Unstructured, error)
func (*ExtensionReconciler) Reconcile ¶ added in v0.10.0
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.