Documentation
¶
Index ¶
- Constants
- Variables
- func AdjustSpecialCasesSubscriptionConfig(subscription *opv1a1.Subscription)
- func ApproveInstallPlanForCsv(ctx context.Context, cli client.Client, csvName string, namespace string) error
- func EnsureCsv(ctx context.Context, cli client.Client, olmPkgRecord *OlmPkgRecord) error
- func EnsureDesiredSubscription(ctx context.Context, cli client.Client, olmPkgRecord *OlmPkgRecord, ...) error
- func GetDesiredSubscription(ctx context.Context, cli client.Client, record *OlmPkgRecord) (*opv1a1.Subscription, error)
- func GetEnvOrPanic(env string) string
- func GetOdfConfigMap(ctx context.Context, cli client.Client, logger logr.Logger) (corev1.ConfigMap, error)
- func GetOdfSubscription(ctx context.Context, cli client.Client) (*opv1a1.Subscription, error)
- func ParseOdfConfigMapRecords(logger logr.Logger, configmap corev1.ConfigMap, ...)
- func SetOdfSubControllerReference(ctx context.Context, cli client.Client, obj client.Object) error
- type CleanupReconciler
- type ClusterVersionReconciler
- type KindCsvsRecord
- type OdfOperatorConfigMapRecord
- type OlmPkgRecord
- type OperatorScalerReconciler
- type SubscriptionReconciler
Constants ¶
const ( OdfSubscriptionPackage = "odf-operator" OdfDepsSubscriptionPackage = "odf-dependencies" CnsaDepsSubscriptionPackage = "cnsa-dependencies" )
const (
CsvWebhookPath = "/mutate-operators-coreos-com-v1alpha1-csv"
)
Variables ¶
var ( StorageClusterKind = odfv1a1.StorageKind("storagecluster.ocs.openshift.io/v1") FlashSystemKind = odfv1a1.StorageKind("flashsystemcluster.odf.ibm.com/v1alpha1") )
var AllQuickStarts = [][]byte{[]byte(gettingStartedQS), []byte(odfConfigAndManagementQS)}
var ( DepsSubscriptionPackageNames = []string{ OdfDepsSubscriptionPackage, CnsaDepsSubscriptionPackage, } )
var (
EmptyOdfOperatorConfigMapRecord = OdfOperatorConfigMapRecord{}
)
var (
OperatorNamespace string
)
Functions ¶
func AdjustSpecialCasesSubscriptionConfig ¶
func AdjustSpecialCasesSubscriptionConfig(subscription *opv1a1.Subscription)
func ApproveInstallPlanForCsv ¶
func ApproveInstallPlanForCsv(ctx context.Context, cli client.Client, csvName string, namespace string) error
ApproveInstallPlanForCsv approve the manual approval installPlan for the given CSV and returns an error if none found
func GetDesiredSubscription ¶
func GetDesiredSubscription(ctx context.Context, cli client.Client, record *OlmPkgRecord) (*opv1a1.Subscription, error)
CheckForExistingSubscription looks for any existing Subscriptions that reference the given package. If one does exist, use its ObjectMeta for the desiredSubscription.
NOTE(jarrpa): We can't use client.MatchingFields to limit the list results because fake.Client does not support them.
func GetEnvOrPanic ¶
func GetOdfConfigMap ¶
func GetOdfSubscription ¶
GetOdfSubscription returns the subscription for odf-operator.
Types ¶
type CleanupReconciler ¶
func (*CleanupReconciler) SetupWithManager ¶
func (r *CleanupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterVersionReconciler ¶
ClusterVersionReconciler reconciles a ClusterVersion object
func (*ClusterVersionReconciler) Reconcile ¶
func (r *ClusterVersionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (*ClusterVersionReconciler) SetupWithManager ¶
func (r *ClusterVersionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KindCsvsRecord ¶
type OlmPkgRecord ¶
type OperatorScalerReconciler ¶
type OperatorScalerReconciler struct {
client.Client
Scheme *runtime.Scheme
OperatorNamespace string
// contains filtered or unexported fields
}
func (*OperatorScalerReconciler) SetupWithManager ¶
func (r *OperatorScalerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SubscriptionReconciler ¶
type SubscriptionReconciler struct {
client.Client
Scheme *runtime.Scheme
OperatorNamespace string
// contains filtered or unexported fields
}
func (*SubscriptionReconciler) SetupWithManager ¶
func (r *SubscriptionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.