Documentation
¶
Index ¶
- Constants
- func SetupAgentCredentialReconciler(mgr manager.Manager, cfg config.Config) error
- func SetupAlertmanagerReconciler(mgr ctrl.Manager, cfg config.Config) error
- func SetupClusterReconciler(mgr manager.Manager, cfg config.Config, logger logr.Logger) error
- func SetupDashboardCleanupReconciler(mgr manager.Manager, cfg config.Config, ...) error
- func SetupDashboardReconciler(mgr manager.Manager, cfg config.Config, ...) error
- func SetupGrafanaOrganizationReconciler(mgr manager.Manager, cfg config.Config, ...) error
- func SetupLogExportReconciler(mgr manager.Manager, cfg config.Config) error
- type AgentCredentialReconciler
- type AlertmanagerReconciler
- type ClusterReconciler
- type DashboardCleanupReconciler
- type DashboardReconciler
- type FinalizerHelper
- type GrafanaOrganizationReconciler
- type LogExportReconciler
Constants ¶
const DashboardFinalizer = "observability.giantswarm.io/grafanadashboard"
Variables ¶
This section is empty.
Functions ¶
func SetupAgentCredentialReconciler ¶ added in v0.68.0
SetupAgentCredentialReconciler wires the reconciler into the manager. The caller gates this on --controllers-agent-credential-enabled.
func SetupAlertmanagerReconciler ¶ added in v0.10.2
SetupAlertmanagerReconciler adds a controller into mgr that reconciles Alertmanager config secrets.
func SetupClusterReconciler ¶ added in v0.68.0
func SetupDashboardCleanupReconciler ¶ added in v0.72.0
func SetupDashboardCleanupReconciler(mgr manager.Manager, cfg config.Config, grafanaClientGen grafanaclient.GrafanaClientGenerator) error
func SetupDashboardReconciler ¶ added in v0.11.0
func SetupDashboardReconciler(mgr manager.Manager, cfg config.Config, grafanaClientGen grafanaclient.GrafanaClientGenerator) error
func SetupGrafanaOrganizationReconciler ¶ added in v0.10.0
func SetupGrafanaOrganizationReconciler(mgr manager.Manager, cfg config.Config, grafanaClientGen grafanaclient.GrafanaClientGenerator) error
Types ¶
type AgentCredentialReconciler ¶ added in v0.68.0
type AgentCredentialReconciler struct {
client.Client
Renderer *credential.Renderer
Aggregator *credential.Aggregator
// contains filtered or unexported fields
}
AgentCredentialReconciler reconciles AgentCredential objects. It renders a per-credential basic-auth Secret and aggregates the htpasswd entries into the per-backend gateway Secrets.
func (*AgentCredentialReconciler) Reconcile ¶ added in v0.68.0
func (r *AgentCredentialReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile moves the AgentCredential's Secret and the per-backend gateway htpasswd Secret towards the desired state.
func (*AgentCredentialReconciler) SetupWithManager ¶ added in v0.68.0
func (r *AgentCredentialReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the controller with the manager.
type AlertmanagerReconciler ¶ added in v0.10.2
type AlertmanagerReconciler struct {
// contains filtered or unexported fields
}
AlertmanagerReconciler reconciles Alertmanager config secrets labelled observability.giantswarm.io/kind: alertmanager-config. It pushes the configuration to Mimir Alertmanager and adds a finalizer so the config is also deleted from Mimir when the secret is removed.
type ClusterReconciler ¶ added in v0.68.0
type ClusterReconciler struct {
// Client is the controller client.
Client client.Client
Config config.Config
// contains filtered or unexported fields
}
ClusterReconciler reconciles a Cluster object
func (*ClusterReconciler) Reconcile ¶ added in v0.68.0
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 (*ClusterReconciler) SetupWithManager ¶ added in v0.68.0
func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DashboardCleanupReconciler ¶ added in v0.72.0
DashboardCleanupReconciler removes orphaned Grafana folders for an organization. It is keyed by organization name (carried in the reconcile request Name) rather than by a single ConfigMap, so it runs once per organization.
func (*DashboardCleanupReconciler) Reconcile ¶ added in v0.72.0
func (r *DashboardCleanupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile removes operator-managed folders that are no longer referenced by any dashboard ConfigMap of the organization identified by req.Name.
func (*DashboardCleanupReconciler) SetupWithManager ¶ added in v0.72.0
func (r *DashboardCleanupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager. It watches dashboard ConfigMaps but enqueues per-organization cleanup requests with a delay so that a burst of dashboard events triggers a single cleanup.
type DashboardReconciler ¶ added in v0.11.0
type DashboardReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
DashboardReconciler reconciles a Dashboard object
func (*DashboardReconciler) Reconcile ¶ added in v0.11.0
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 FinalizerHelper ¶ added in v0.31.0
type FinalizerHelper struct {
// contains filtered or unexported fields
}
func NewFinalizerHelper ¶ added in v0.31.0
func NewFinalizerHelper(runtimeClient client.Client, finalizer string) FinalizerHelper
func (FinalizerHelper) EnsureAdded ¶ added in v0.31.0
func (FinalizerHelper) EnsureRemoved ¶ added in v0.31.0
type GrafanaOrganizationReconciler ¶ added in v0.8.0
type GrafanaOrganizationReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
GrafanaOrganizationReconciler reconciles a GrafanaOrganization object
func (*GrafanaOrganizationReconciler) Reconcile ¶ added in v0.8.0
func (r *GrafanaOrganizationReconciler) 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 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.
type LogExportReconciler ¶ added in v0.76.0
LogExportReconciler reconciles LogExport objects into the single ConfigMap and Secret that switch alloy-logexporter on and configure it.
The rendered values cover every LogExport on the installation at once, so this reconciler is installation-scoped rather than per-resource: whichever resource triggered a reconcile, the work is the same and the result is the same.
func (*LogExportReconciler) Reconcile ¶ added in v0.76.0
Reconcile rebuilds the exporter configuration from the current set of LogExports.
func (*LogExportReconciler) SetupWithManager ¶ added in v0.76.0
func (r *LogExportReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the controller with the manager.
The rendered objects carry no owner reference: they are derived from every LogExport, so an ownerRef from any single one would make deleting that resource garbage-collect them and stop every other export.