grafanadatasource

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDatasourceSecret

func GenerateDatasourceSecret(lc loggedcluster.Interface, credentialsSecret *v1.Secret) (v1.Secret, error)

GenerateDatasourceSecret returns a secret for the Loki datasource for Grafana

Types

type Reconciler

type Reconciler struct {
	client.Client
}

Reconciler implements a reconciler.Interface to handle Grafana datasource secret: secret which stores Loki datasource information for Grafana

func (*Reconciler) ReconcileCreate

func (r *Reconciler) ReconcileCreate(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)

ReconcileCreate ensures Grafana Datasource for Loki is created with the right credentials

func (*Reconciler) ReconcileDelete

func (r *Reconciler) ReconcileDelete(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)

ReconcileDelete - Delete the datasource

type Values

type Values struct {
	ApiVersion  int          `yaml:"apiVersion" json:"apiVersion"`
	Datasources []datasource `yaml:"datasources" json:"datasources"`
}

Jump to

Keyboard shortcuts

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