Documentation ¶
Index ¶
- Constants
- func GetOpenShiftBaseDomain(ctx context.Context, k k8s.Client, req ctrl.Request) (string, error)
- func GetTenantConfigMapData(ctx context.Context, k k8s.Client, req ctrl.Request) map[string]openshift.TenantData
- func GetTenantSecrets(ctx context.Context, k k8s.Client, req ctrl.Request, ...) ([]*manifests.TenantSecrets, error)
- func ValidateModes(stack lokiv1beta1.LokiStack) error
Constants ¶
const (
// LokiGatewayTenantFileName is the name of the tenant config file in the configmap
LokiGatewayTenantFileName = "tenants.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func GetOpenShiftBaseDomain ¶
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.