grafanaagentsecret

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGrafanaAgentSecret

func GenerateGrafanaAgentSecret(lc loggedcluster.Interface, credentialsSecret *v1.Secret, lokiURL string) (v1.Secret, error)

GenerateGrafanaAgentSecret returns a secret for the Loki-multi-tenant-proxy auth config

func SecretMeta

SecretMeta returns metadata for the grafana-agent-secret

Types

type Reconciler

type Reconciler struct {
	client.Client
}

Reconciler implements a reconciler.Interface to handle grafana-agent secret: extra secret which stores logging write credentials

func (*Reconciler) ReconcileCreate

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

ReconcileCreate ensures grafana-agent secret is created with the right credentials

func (*Reconciler) ReconcileDelete

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

ReconcileDelete ensure grafana-agent-secret is deleted for the given cluster.

Jump to

Keyboard shortcuts

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