controller

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DashboardFinalizer          = "observability.giantswarm.io/grafanadashboard"
	DashboardSelectorLabelName  = "app.giantswarm.io/kind"
	DashboardSelectorLabelValue = "dashboard"
)

Variables

This section is empty.

Functions

func SetupAlertmanagerReconciler added in v0.10.2

func SetupAlertmanagerReconciler(mgr ctrl.Manager, conf config.Config) error

SetupAlertmanagerReconciler adds a controller into mgr that reconciles the Alertmanager secret.

func SetupClusterMonitoringReconciler added in v0.10.0

func SetupClusterMonitoringReconciler(mgr manager.Manager, conf config.Config) error

func SetupDashboardReconciler added in v0.11.0

func SetupDashboardReconciler(mgr manager.Manager, conf config.Config) error

func SetupGrafanaOrganizationReconciler added in v0.10.0

func SetupGrafanaOrganizationReconciler(mgr manager.Manager, conf config.Config) error

Types

type AlertmanagerReconciler added in v0.10.2

type AlertmanagerReconciler struct {
	// contains filtered or unexported fields
}

AlertmanagerReconciler reconciles the Alertmanager secret created by the observability-operator Helm chart and configures the Alertmanager instance with the configuration stored in the secret. This controller do not make use of finalizers as the configuration is not removed from Alertmanager when the secret is deleted.

func (AlertmanagerReconciler) Reconcile added in v0.10.2

Reconcile main logic

type ClusterMonitoringReconciler

type ClusterMonitoringReconciler struct {
	// Client is the controller client.
	client.Client
	common.ManagementCluster
	// PrometheusAgentService is the service for managing PrometheusAgent resources.
	prometheusagent.PrometheusAgentService
	// AlloyService is the service which manages Alloy monitoring agent configuration.
	AlloyService alloy.Service
	// HeartbeatRepository is the repository for managing heartbeats.
	heartbeat.HeartbeatRepository
	// MimirService is the service for managing mimir configuration.
	mimir.MimirService
	// BundleConfigurationService is the service for configuring the observability bundle.
	*bundle.BundleConfigurationService
	// MonitoringConfig is the configuration for the monitoring package.
	MonitoringConfig monitoring.Config
}

ClusterMonitoringReconciler reconciles a Cluster object

func (*ClusterMonitoringReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.0/pkg/reconcile

func (*ClusterMonitoringReconciler) SetupWithManager

func (r *ClusterMonitoringReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type DashboardReconciler added in v0.11.0

type DashboardReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	GrafanaAPI *grafanaAPI.GrafanaHTTPAPI
}

DashboardReconciler reconciles a Dashboard object

func (*DashboardReconciler) Reconcile added in v0.11.0

func (r *DashboardReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main Kubernetes reconciliation loop which aims to move the current state of the Dashboard closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.0/pkg/reconcile

func (*DashboardReconciler) SetupWithManager added in v0.11.0

func (r *DashboardReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GrafanaOrganizationReconciler added in v0.8.0

type GrafanaOrganizationReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	GrafanaAPI *grafanaAPI.GrafanaHTTPAPI
}

GrafanaOrganizationReconciler reconciles a GrafanaOrganization object

func (*GrafanaOrganizationReconciler) Reconcile added in v0.8.0

Reconcile is part of the main Kubernetes reconciliation loop which aims to move the current state of the GrafanaOrganization closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.0/pkg/reconcile

func (*GrafanaOrganizationReconciler) SetupWithManager added in v0.8.0

func (r *GrafanaOrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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