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 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
Types ¶
type Reconciler ¶
Reconciler implements a reconciler.Interface to handle Loki auth: a secret for the Loki-multi-tenant-proxy auth config
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
Click to show internal directories.
Click to hide internal directories.