Documentation ¶
Index ¶
- Constants
- Variables
- func CSVmissing(operator *operatorsv1.Operator, csvKey types.NamespacedName) bool
- func CatalogSourceName(addon *addonsv1alpha1.Addon) string
- func GetCommonInstallOptions(addon *addonsv1alpha1.Addon) (commonInstallOptions addonsv1alpha1.AddonInstallOLMCommon)
- func GetMonitoringFederationServiceMonitorEndpoints(addon *addonsv1alpha1.Addon) []monitoringv1.Endpoint
- func GetMonitoringFederationServiceMonitorName(addon *addonsv1alpha1.Addon) string
- func GetMonitoringNamespaceName(addon *addonsv1alpha1.Addon) string
- func HasAdditionalCatalogSources(addon *addonsv1alpha1.Addon) bool
- func HasMonitoringFederation(addon *addonsv1alpha1.Addon) bool
- func HasMonitoringStack(addon *addonsv1alpha1.Addon) bool
- func HashCurrentAddonStatus(addon *addonsv1alpha1.Addon) string
- func SubscriptionName(addon *addonsv1alpha1.Addon) string
- type AddonReconciler
- func (r *AddonReconciler) DisableGlobalPause(ctx context.Context) error
- func (r *AddonReconciler) EnableGlobalPause(ctx context.Context) error
- func (r *AddonReconciler) GetOCMClusterInfo() OcmClusterInfo
- func (r *AddonReconciler) InjectOCMClient(ctx context.Context, c *ocm.Client) error
- func (r *AddonReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *AddonReconciler) SetupWithManager(mgr ctrl.Manager, opts ...AddonReconcilerOptions) error
- type AddonReconcilerOptions
- type NamespaceOpts
- type OcmClusterInfo
- type OcmClusterInfoGetter
- type PackageOperatorReconciler
- type WithMonitoringStackReconciler
- type WithPackageOperatorReconciler
Constants ¶
const ( ClusterIDConfigKey = "clusterID" DeadMansSnitchUrlConfigKey = "deadMansSnitchUrl" OcmClusterIDConfigKey = "ocmClusterID" OcmClusterNameConfigKey = "ocmClusterName" PagerDutyKeyConfigKey = "pagerDutyKey" ParametersConfigKey = "parameters" TargetNamespaceConfigKey = "targetNamespace" SendGridConfigKey = "smtp" )
const ADDON_INSTANCE_RECONCILER_NAME = "addonInstanceReconciler"
const (
DELETION_RECONCILER_NAME = "deletionReconciler"
)
const MONITORING_FEDERATION_RECONCILER_NAME = "monitoringFederationReconciler"
const MONITORING_STACK_RECONCILER_NAME = "monitoringStackReconciler"
const NAMESPACE_RECONCILER_NAME = "namespaceReconciler"
const OLM_RECONCILER_NAME = "olmReconciler"
const PkoPkgTemplate = `` /* 436-byte string literal not displayed */
const SECRET_RECONCILER_NAME = "secretPropogationReconciler"
Variables ¶
var DeleteConfigMapLabel = "api.openshift.com/addon-%v-delete"
Functions ¶
func CSVmissing ¶ added in v1.12.0
func CSVmissing(operator *operatorsv1.Operator, csvKey types.NamespacedName) bool
func CatalogSourceName ¶ added in v1.4.0
func CatalogSourceName(addon *addonsv1alpha1.Addon) string
func GetCommonInstallOptions ¶ added in v1.7.0
func GetCommonInstallOptions(addon *addonsv1alpha1.Addon) (commonInstallOptions addonsv1alpha1.AddonInstallOLMCommon)
func GetMonitoringFederationServiceMonitorEndpoints ¶ added in v0.7.0
func GetMonitoringFederationServiceMonitorEndpoints(addon *addonsv1alpha1.Addon) []monitoringv1.Endpoint
GetMonitoringFederationServiceMonitorEndpoints generates a slice of monitoringv1.Endpoint instances from an addon's Monitoring.Federation specification.
func GetMonitoringFederationServiceMonitorName ¶ added in v0.7.0
func GetMonitoringFederationServiceMonitorName(addon *addonsv1alpha1.Addon) string
Helper function to compute monitoring federation ServiceMonitor name from addon object
func GetMonitoringNamespaceName ¶ added in v0.7.0
func GetMonitoringNamespaceName(addon *addonsv1alpha1.Addon) string
Helper function to compute monitoring Namespace name from addon object
func HasAdditionalCatalogSources ¶ added in v1.3.0
func HasAdditionalCatalogSources(addon *addonsv1alpha1.Addon) bool
HasAdditionalCatalogSources determines whether the passed addon's spec contains additional catalog sources
func HasMonitoringFederation ¶ added in v0.7.0
func HasMonitoringFederation(addon *addonsv1alpha1.Addon) bool
HasMonitoringFederation is a helper to determine if a given addon's spec defines a Monitoring.Federation.
func HasMonitoringStack ¶ added in v1.7.1
func HasMonitoringStack(addon *addonsv1alpha1.Addon) bool
HasMonitoringStack is a helper to determine if a given addon's spec defines a Monitoring.Stack.
func HashCurrentAddonStatus ¶ added in v1.7.0
func HashCurrentAddonStatus(addon *addonsv1alpha1.Addon) string
func SubscriptionName ¶ added in v1.4.0
func SubscriptionName(addon *addonsv1alpha1.Addon) string
Types ¶
type AddonReconciler ¶
type AddonReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder *metrics.Recorder UncachedClient client.Client ClusterExternalID string // Namespace the AddonOperator is deployed into AddonOperatorNamespace string // contains filtered or unexported fields }
func NewAddonReconciler ¶ added in v1.3.0
func (*AddonReconciler) DisableGlobalPause ¶
func (r *AddonReconciler) DisableGlobalPause(ctx context.Context) error
Unpauses reconcilation of all Addon objects. Concurrency safe.
func (*AddonReconciler) EnableGlobalPause ¶
func (r *AddonReconciler) EnableGlobalPause(ctx context.Context) error
Pauses reconcilation of all Addon objects. Concurrency safe.
func (*AddonReconciler) GetOCMClusterInfo ¶ added in v1.12.0
func (r *AddonReconciler) GetOCMClusterInfo() OcmClusterInfo
func (*AddonReconciler) InjectOCMClient ¶ added in v0.7.0
func (*AddonReconciler) SetupWithManager ¶
func (r *AddonReconciler) SetupWithManager(mgr ctrl.Manager, opts ...AddonReconcilerOptions) error
type AddonReconcilerOptions ¶ added in v1.7.0
type AddonReconcilerOptions interface { ApplyToAddonReconciler(config *AddonReconciler) ApplyToControllerBuilder(b *builder.Builder) }
type NamespaceOpts ¶ added in v1.5.0
func WithNamespaceAnnotations ¶ added in v1.5.0
func WithNamespaceAnnotations(annotations map[string]string) NamespaceOpts
func WithNamespaceLabels ¶ added in v1.5.0
func WithNamespaceLabels(labels map[string]string) NamespaceOpts
type OcmClusterInfo ¶ added in v1.12.0
type OcmClusterInfoGetter ¶ added in v1.12.0
type OcmClusterInfoGetter func() OcmClusterInfo
type PackageOperatorReconciler ¶ added in v1.8.2
type PackageOperatorReconciler struct { Client client.Client Scheme *runtime.Scheme ClusterID string OcmClusterInfo OcmClusterInfoGetter }
func (*PackageOperatorReconciler) Name ¶ added in v1.8.2
func (r *PackageOperatorReconciler) Name() string
func (*PackageOperatorReconciler) Reconcile ¶ added in v1.8.2
func (r *PackageOperatorReconciler) Reconcile(ctx context.Context, addon *addonsv1alpha1.Addon) (ctrl.Result, error)
type WithMonitoringStackReconciler ¶ added in v1.7.0
func (WithMonitoringStackReconciler) ApplyToAddonReconciler ¶ added in v1.7.0
func (w WithMonitoringStackReconciler) ApplyToAddonReconciler(config *AddonReconciler)
func (WithMonitoringStackReconciler) ApplyToControllerBuilder ¶ added in v1.7.0
func (w WithMonitoringStackReconciler) ApplyToControllerBuilder(b *builder.Builder)
type WithPackageOperatorReconciler ¶ added in v1.8.2
func (WithPackageOperatorReconciler) ApplyToAddonReconciler ¶ added in v1.8.2
func (w WithPackageOperatorReconciler) ApplyToAddonReconciler(config *AddonReconciler)
func (WithPackageOperatorReconciler) ApplyToControllerBuilder ¶ added in v1.8.2
func (w WithPackageOperatorReconciler) ApplyToControllerBuilder(b *builder.Builder)
Source Files ¶
- addon_deletion_handler_addon_instance.go
- addon_deletion_handler_legacy.go
- addon_deletion_reconciler.go
- addon_instance_reconciler.go
- addon_reconciler_options.go
- controller.go
- handle_installed_condition.go
- monitoring_federation_reconciler.go
- monitoring_stack_reconciler.go
- namespace_options.go
- namespace_reconciler.go
- olm_reconciler.go
- package_operator_reconciler.go
- phase_ensure_catalogsource.go
- phase_ensure_catalogsource_networkpolicy.go
- phase_ensure_operator_group.go
- phase_ensure_subscription.go
- phase_observe_operatorresource.go
- secret_reconciler.go
- status_reporting.go
- upgradepolicy_status.go
- utils.go