gateway

package
v0.0.0-...-8c8647d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LokiGatewayTenantFileName is the name of the tenant config file in the configmap
	LokiGatewayTenantFileName = "tenants.yaml"
)

Variables

This section is empty.

Functions

func GetOpenShiftBaseDomain

func GetOpenShiftBaseDomain(ctx context.Context, k k8s.Client, req ctrl.Request) (string, error)

GetOpenShiftBaseDomain returns the cluster DNS base domain on OpenShift clusters to auto-create redirect URLs for OpenShift Auth or an error. If the config.openshift.io/DNS object is not found the whole lokistack resoure is set to a degraded state.

func GetTenantConfigMapData

func GetTenantConfigMapData(ctx context.Context, k k8s.Client, req ctrl.Request) map[string]openshift.TenantData

GetTenantConfigMapData returns the tenantName, tenantId, cookieSecret clusters to auto-create redirect URLs for OpenShift Auth or an error.

func GetTenantSecrets

func GetTenantSecrets(
	ctx context.Context,
	k k8s.Client,
	req ctrl.Request,
	stack *lokiv1beta1.LokiStack,
) ([]*manifests.TenantSecrets, error)

GetTenantSecrets returns the list to gateway tenant secrets for a tenant mode. For modes static and dynamic the secrets are fetched from external provided secrets. For mode openshift-logging a secret per default tenants are created. All secrets live in the same namespace as the lokistack request.

func ValidateModes

func ValidateModes(stack lokiv1beta1.LokiStack) error

ValidateModes validates the tenants mode specification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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