settings

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LocalUser .
	LocalUser = "1000"

	// Region .
	Region = "us-east-1"

	// RegistryBucket .
	RegistryBucket = "registry"

	// AppConfigConnectionSecretName .
	AppConfigConnectionSecretName = "storage-config"

	// RegistryConnectionSecretName .
	RegistryConnectionSecretName = "registry-storage"

	// TaskRunnerConnectionSecretName .
	TaskRunnerConnectionSecretName = "s3cmd-config"
)

Variables

View Source
var (
	// HelmChartsDirectory is the directory that contains all the bundled Charts.
	// The default value is "/charts". Use HELM_CHARTS environment variable to change it.
	HelmChartsDirectory = "/charts"

	// ManagerServiceAccount is the name of the ServiceAccount that is used by the manager.
	// The default value is "gitlab-manager". Use GITLAB_MANAGER_SERVICE_ACCOUNT environment
	// variable to change it.
	ManagerServiceAccount = "gitlab-manager"

	// AppServiceAccount is the name of the ServiceAccount that is used by the application.
	// The default value is "gitlab-manager". Use GITLAB_APP_SERVICE_ACCOUNT environment
	// variable to change it.
	AppServiceAccount = "gitlab-app"

	// HealthProbeBindAddress returns the address for hosting health probes.
	HealthProbeBindAddress = ":6060"

	// LivenessEndpointName returns the endpoint name for the liveness probe.
	LivenessEndpointName = "/liveness"

	// ReadinessEndpointName returns the endpoint name for the readiness probe.
	ReadinessEndpointName = "/readiness"

	// AliveStatus returns an error if not alive, and nil if alive.
	AliveStatus = fmt.Errorf("not alive")

	// ReadyStatus returns an error if not ready, and nil if ready.
	ReadyStatus = fmt.Errorf("not ready")

	// HealthzCheck returns the checker.
	HealthzCheck = func(_ *http.Request) error { return AliveStatus }
	ReadyzCheck  = func(_ *http.Request) error { return ReadyStatus }
)

Functions

func Load

func Load()

Load reads Operator settings from environment variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL