Documentation ¶
Index ¶
- Constants
- Variables
- type CheckMeterReports
- type ClusterRegistrationReconciler
- type ClusterServiceVersionReconciler
- type DataServiceReconciler
- type DeploymentReconciler
- type MarketplaceConfigReconciler
- type MeterBaseReconciler
- type MeterDefinitionReconciler
- type MeterReportCreatorReconciler
- type MeterReportReconciler
- type SecretInfo
Constants ¶
const ( DEFAULT_IMAGE_MARKETPLACE_AGENT = "marketplace-agent:latest" IBM_CATALOG_SOURCE_FLAG = true )
const ( DEFAULT_PROM_SERVER = "prom/prometheus:v2.15.2" DEFAULT_CONFIGMAP_RELOAD = "jimmidyson/configmap-reload:v0.3.0" RELATED_IMAGE_PROM_SERVER = "RELATED_IMAGE_PROM_SERVER" RELATED_IMAGE_CONFIGMAP_RELOAD = "RELATED_IMAGE_CONFIGMAP_RELOAD" PROM_DEP_NEW_WARNING_MSG = "" /* 251-byte string literal not displayed */ PROM_DEP_UPGRADE_WARNING_MSG = "" /* 266-byte string literal not displayed */ )
const (
MeteredResourceAnnotationKey = "marketplace.redhat.com/meteredUIDs"
)
Variables ¶
var ( ErrRetentionTime = errors.New("retention time must be at least 168h") ErrInsufficientStorageConfiguration = errors.New("must allocate at least 40GiB of disk space") ErrParseUserWorkloadConfiguration = errors.New("could not parse user workload configuration from user-workload-monitoring-config cm") ErrUserWorkloadMonitoringConfigNotFound = errors.New("user-workload-monitoring-config config map not found on cluster") )
Functions ¶
This section is empty.
Types ¶
type CheckMeterReports ¶
type CheckMeterReports event.GenericEvent
type ClusterRegistrationReconciler ¶
type ClusterRegistrationReconciler struct { // This client, initialized using mgr.Client() above, is a split client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme Log logr.Logger Cfg *config.OperatorConfig }
ClusterRegistrationReconciler reconciles a Registration object
func (*ClusterRegistrationReconciler) Reconcile ¶
func (r *ClusterRegistrationReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a ClusterRegistration object and makes changes based on the state read and what is in the ClusterRegistration.Spec
func (*ClusterRegistrationReconciler) SetupWithManager ¶
func (r *ClusterRegistrationReconciler) SetupWithManager(mgr ctrl.Manager) error
type ClusterServiceVersionReconciler ¶
type ClusterServiceVersionReconciler struct { // This Client, initialized using mgr.Client() above, is a split Client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme Log logr.Logger }
ClusterServiceVersionReconciler reconciles a ClusterServiceVersion object
func (*ClusterServiceVersionReconciler) Reconcile ¶
func (r *ClusterServiceVersionReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a ClusterServiceVersion object and makes changes based on the state read and what is in the ClusterServiceVersion.Spec
func (*ClusterServiceVersionReconciler) SetupWithManager ¶
func (r *ClusterServiceVersionReconciler) SetupWithManager(mgr manager.Manager) error
type DataServiceReconciler ¶
type DataServiceReconciler struct { // This Client, initialized using mgr.Client() above, is a split Client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme Log logr.Logger Cfg *config.OperatorConfig Factory *manifests.Factory }
DataServiceReconciler reconciles the DataService of a MeterBase object
func (*DataServiceReconciler) Reconcile ¶
func (r *DataServiceReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a MeterBase object and makes changes based on the state read and what is in the MeterBase.Spec
func (*DataServiceReconciler) SetupWithManager ¶
func (r *DataServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
add adds a new Controller to mgr with r as the reconcile.Reconciler
type DeploymentReconciler ¶
type DeploymentReconciler struct { // This Client, initialized using mgr.Client() above, is a split Client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme Log logr.Logger Factory *manifests.Factory }
OperatorReconciler reconciles objects essential to the deployment
func (*DeploymentReconciler) Reconcile ¶
func (r *DeploymentReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Enforce the loose operator bundle manifests. OLM applies these once and does not reconcile their state assets/ibm-metrics-operator should match the bundle/manifests
func (*DeploymentReconciler) SetupWithManager ¶
func (r *DeploymentReconciler) SetupWithManager(mgr manager.Manager) error
type MarketplaceConfigReconciler ¶
type MarketplaceConfigReconciler struct { // This Client, initialized using mgr.Client() above, is a split Client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme Log logr.Logger Cfg *config.OperatorConfig }
MarketplaceConfigReconciler reconciles a MarketplaceConfig object
func (*MarketplaceConfigReconciler) Reconcile ¶
func (r *MarketplaceConfigReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a MarketplaceConfig object and makes changes based on the state read and what is in the MarketplaceConfig.Spec
func (*MarketplaceConfigReconciler) SetupWithManager ¶
func (r *MarketplaceConfigReconciler) SetupWithManager(mgr manager.Manager) error
add adds a new Controller to mgr with r as the reconcile.Reconciler
type MeterBaseReconciler ¶
type MeterBaseReconciler struct { // This Client, initialized using mgr.Client() above, is a split Client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme Log logr.Logger Cfg *config.OperatorConfig Factory *manifests.Factory Recorder record.EventRecorder PrometheusAPIBuilder *prometheus.PrometheusAPIBuilder }
MeterBaseReconciler reconciles a MeterBase object
func (*MeterBaseReconciler) Reconcile ¶
func (r *MeterBaseReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a MeterBase object and makes changes based on the state read and what is in the MeterBase.Spec
func (*MeterBaseReconciler) SetupWithManager ¶
func (r *MeterBaseReconciler) SetupWithManager(mgr ctrl.Manager) error
add adds a new Controller to mgr with r as the reconcile.Reconciler
type MeterDefinitionReconciler ¶
type MeterDefinitionReconciler struct { // This Client, initialized using mgr.Client() above, is a split Client // that reads objects from the cache and writes to the apiserver Client client.Client Log logr.Logger Scheme *runtime.Scheme Cfg *config.OperatorConfig PrometheusAPIBuilder *prometheus.PrometheusAPIBuilder }
MeterDefinitionReconciler reconciles a MeterDefinition object
func (*MeterDefinitionReconciler) Reconcile ¶
func (r *MeterDefinitionReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a MeterDefinition object and makes changes based on the state read and what is in the MeterDefinition.Spec
func (*MeterDefinitionReconciler) SetupWithManager ¶
func (r *MeterDefinitionReconciler) SetupWithManager(mgr ctrl.Manager) error
add adds a new Controller to mgr with r as the reconcile.Reconciler
type MeterReportCreatorReconciler ¶
type MeterReportCreatorReconciler struct { Client client.Client Scheme *runtime.Scheme Log logr.Logger Cfg *config.OperatorConfig }
func (*MeterReportCreatorReconciler) SetupWithManager ¶
func (r *MeterReportCreatorReconciler) SetupWithManager( mgr ctrl.Manager, doneChannel <-chan struct{}, ) error
type MeterReportReconciler ¶
type MeterReportReconciler struct { // This client, initialized using mgr.Client() above, is a split client // that reads objects from the cache and writes to the apiserver client.Client Log logr.Logger Scheme *runtime.Scheme Cfg *config.OperatorConfig Factory *manifests.Factory }
MeterReportReconciler reconciles a MeterReport object
func (*MeterReportReconciler) Reconcile ¶
func (r *MeterReportReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*MeterReportReconciler) SetupWithManager ¶
func (r *MeterReportReconciler) SetupWithManager(mgr manager.Manager) error