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 )
Click to show internal directories.
Click to hide internal directories.