marketplace

package
v2.0.0-...-7b710ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 64 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_IMAGE_MARKETPLACE_AGENT = "marketplace-agent:latest"
	IBM_CATALOG_SOURCE_FLAG         = true
)
View Source
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 */
)
View Source
const (
	MeteredResourceAnnotationKey = "marketplace.redhat.com/meteredUIDs"
)

Variables

View Source
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

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

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

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

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

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

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) Reconcile

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

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

type SecretInfo

type SecretInfo struct {
	TypeOf     string
	Secret     *v1.Secret
	StatusKey  string
	MessageKey string
	SecretKey  string
	MissingMsg string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL