lokiauth

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLokiAuthSecret

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

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

func LokiAuthSecretMeta

func LokiAuthSecretMeta(lc loggedcluster.Interface) metav1.ObjectMeta

LokiConfigSecretMeta returns metadata for the Loki-multi-tenant-proxy secret

func ReloadLokiProxy

func ReloadLokiProxy(lc loggedcluster.Interface, ctx context.Context, client client.Client) error

This one is a hack until the proxy knows how to automatically reload its config

Types

type Reconciler

type Reconciler struct {
	client.Client
}

Reconciler implements a reconciler.Interface to handle Promtail toggle: enable or disable Promtail in a given Cluster.

func (*Reconciler) ReconcileCreate

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

ReconcileCreate ensures Loki-multi-tenant auth map is created with the right credentials

func (*Reconciler) ReconcileDelete

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

ReconcileDelete - Not much to do here when a cluster is deleted

type Values

type Values struct {
	Users []user `yaml:"users" json:"users"`
}

Jump to

Keyboard shortcuts

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