settings

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0, MIT Imports: 9 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"

	// ToolboxConnectionSecretName .
	ToolboxConnectionSecretName = "s3cmd-config" // nolint:gosec
)

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"

	// AppAnyUIDServiceAccount is the name of the ServiceAccount that is used by GitLab components
	// that can run under the 'anyuid' SecurityContextConstraint.
	// The default value is "gitlab-app-anyuid". Use GITLAB_APP_ANYUID_SERVICE_ACCOUNT environment
	// variable to change it.
	AppAnyUIDServiceAccount = "gitlab-app-anyuid"

	// AppNonRootServiceAccount is the name of the ServiceAccount that is used by GitLab components
	// that can run under the 'nonroot' SecurityContextConstraint.
	// The default value is "gitlab-app-nonroot". Use GITLAB_APP_NONROOT_SERVICE_ACCOUNT environment
	// variable to change it.
	AppNonRootServiceAccount = "gitlab-app-nonroot"

	// NGINXServiceAccount is the name of the ServiceAccount that is used by NGINX.
	// The default value is "gitlab-nginx-ingress". Use NGINX_SERVICE_ACCOUNT environment
	// variable to change it.
	NGINXServiceAccount = "gitlab-nginx-ingress"

	// 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 }

	KubeVersion *chartutil.KubeVersion = nil
)

Functions

func GetKubeAPIVersions

func GetKubeAPIVersions() chartutil.VersionSet

func IsGroupVersionKindSupported

func IsGroupVersionKindSupported(groupVersion, kind string) bool

func IsGroupVersionSupported

func IsGroupVersionSupported(group, version string) bool

IsGroupVersionSupported checks for API endpoint for given Group and Version.

func Load

func Load()

Load reads Operator settings from environment variables.

func SetEnvTestConfig

func SetEnvTestConfig(cfg *rest.Config)

func UnsetEnvTestConfig

func UnsetEnvTestConfig()

Types

type KubeConfig

type KubeConfig struct {
	Config *rest.Config
	Error  error
}

func KubernetesConfig

func KubernetesConfig() KubeConfig

func (KubeConfig) NewKubernetesClient

func (k KubeConfig) NewKubernetesClient() (*kubernetes.Clientset, error)

Jump to

Keyboard shortcuts

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