proxyauth

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultReadOrgIDs - make sure to have at least 2 tenants, to prevent writing with this user
	DefaultReadOrgIDs = "giantswarm|default"
)

Variables

This section is empty.

Functions

func GenerateProxyAuthSecret

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

GenerateProxyAuthSecret returns a secret for the grafana-multi-tenant-proxy auth config

func ProxyAuthSecretMeta

func ProxyAuthSecretMeta(lc loggedcluster.Interface) metav1.ObjectMeta

ProxyConfigSecretMeta returns metadata for the grafana-multi-tenant-proxy secret

Types

type Reconciler

type Reconciler struct {
	client.Client
}

Reconciler implements a reconciler.Interface to handle Proxy auth: a secret for the grafana-multi-tenant-proxy config

func (*Reconciler) ReconcileCreate

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

ReconcileCreate ensures grafana-multi-tenant-proxy 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

Jump to

Keyboard shortcuts

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