mirror of
https://github.com/stakater/Reloader.git
synced 2026-05-06 00:36:39 +00:00
Previously, 9091 and 9090 both led to the same web server, meaning both /metrics and /live were reachable and fully functional through both. This commit changes that so that only port 9090 is used for both. Closes #381.
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package constants
|
|
|
|
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"
|
|
)
|
|
|
|
// Leadership election related consts
|
|
const (
|
|
LockName string = "stakater-reloader-lock"
|
|
PodNameEnv string = "POD_NAME"
|
|
PodNamespaceEnv string = "POD_NAMESPACE"
|
|
)
|