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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LokiGatewayTenantFileName is the name of the tenant config file in the configmap
	LokiGatewayTenantFileName = "tenants.yaml"
	// LokiGatewayRbacFileName is the name of the rbac config file in the configmap
	LokiGatewayRbacFileName = "rbac.yaml"
	// LokiGatewayRegoFileName is the name of the lokistack-gateway rego config file in the configmap
	LokiGatewayRegoFileName = "lokistack-gateway.rego"
	// LokiGatewayMountDir is the path that is mounted from the configmap
	LokiGatewayMountDir = "/etc/lokistack-gateway"
	// LokiGatewayTLSDir is the path that is mounted from the configmap for TLS
	LokiGatewayTLSDir = "/var/run/tls"
	// LokiGatewayCABundleDir is the path that is mounted from the configmap for TLS
	LokiGatewayCABundleDir = "/var/run/ca"
	// LokiGatewayCAFile is the file name of the certificate authority file
	LokiGatewayCAFile = "service-ca.crt"
	// LokiGatewayCertFile is the file of the X509 server certificate file
	LokiGatewayCertFile = "tls.crt"
	// LokiGatewayKeyFile is the file name of the server private key
	LokiGatewayKeyFile = "tls.key"
)

Variables

This section is empty.

Functions

func Build

func Build(opts Options) (rbacCfg []byte, tenantsCfg []byte, regoCfg []byte, err error)

Build builds a loki gateway configuration files

Types

type Options

type Options struct {
	Stack lokiv1beta1.LokiStackSpec

	Namespace        string
	Name             string
	StorageDirectory string

	OpenShiftOptions openshift.Options
	TenantSecrets    []*Secret
	TenantConfigMap  map[string]TenantData
}

Options is used to render the rbac.yaml and tenants.yaml file template

type Secret

type Secret struct {
	TenantName   string
	ClientID     string
	ClientSecret string
	IssuerCAPath string
}

Secret for clientID, clientSecret and issuerCAPath for tenant's authentication.

type TenantData

type TenantData struct {
	TenantID     string
	CookieSecret string
}

TenantData defines the existing tenantID and cookieSecret for lokistack reconcile.

Jump to

Keyboard shortcuts

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