constants

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHttpListenAddr is the default listening address for global http server
	DefaultHttpListenAddr = ":9090"

	// ConfigmapEnvVarPostfix is a postfix for configmap envVar
	ConfigmapEnvVarPostfix = "CONFIGMAP"
	// SecretEnvVarPostfix is a postfix for secret envVar
	SecretEnvVarPostfix = "SECRET"
	// EnvVarPrefix is a Prefix for environment variable
	EnvVarPrefix = "STAKATER_"

	// ReloaderAnnotationPrefix is a Prefix for all reloader annotations
	ReloaderAnnotationPrefix = "reloader.stakater.com"
	// LastReloadedFromAnnotation is an annotation used to describe the last resource that triggered a reload
	LastReloadedFromAnnotation = "last-reloaded-from"

	// 	ReloadStrategyFlag The reload strategy flag name
	ReloadStrategyFlag = "reload-strategy"
	// EnvVarsReloadStrategy instructs Reloader to add container environment variables to facilitate a restart
	EnvVarsReloadStrategy = "env-vars"
	// AnnotationsReloadStrategy instructs Reloader to add pod template annotations to facilitate a restart
	AnnotationsReloadStrategy = "annotations"
)
View Source
const (
	LockName        string = "stakater-reloader-lock"
	PodNameEnv      string = "POD_NAME"
	PodNamespaceEnv string = "POD_NAMESPACE"
)

Leadership election related consts

Variables

This section is empty.

Functions

This section is empty.

Types

type Result added in v0.0.22

type Result int

Result is a status for deployment update

const (
	// Updated is returned when environment variable is created/updated
	Updated Result = 1 + iota
	// NotUpdated is returned when environment variable is found but had value equals to the new value
	NotUpdated
	// NoEnvVarFound is returned when no environment variable is found
	NoEnvVarFound
	// NoContainerFound is returned when no environment variable is found
	NoContainerFound
)

Jump to

Keyboard shortcuts

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