-
Notifications
You must be signed in to change notification settings - Fork 11
/
const.go
53 lines (47 loc) · 2.11 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package internal
const (
// URIHealthz represents URI for health check
URIHealthz = "/healthz"
URIVersion = "/version"
//URIGetTeamConfiguration = "/team/%s/config"
//URIConfig = "/config"
//DefaultHTTPRequestTimeout = 10 * time.Second
//SamsahaiCtrlName = "samsahai-ctrl"
SamsahaiAuthHeader = "x-samsahai-auth"
SamsahaiDefaultPort = "8080"
//SamsahaiDefaultServiceName = "samsahai"
StagingCtrlName = "s2h-staging-ctrl"
StagingDefaultPort = 8090
// Viper keys
VKDebug = "debug"
VKServerHTTPPort = "port"
VKMetricHTTPPort = "metric-port"
VKPodNamespace = "pod-namespace"
VKS2HConfigPath = "s2h-config-path"
VKClusterDomain = "cluster-domain"
VKS2HTeamName = "s2h-team-name"
VKS2HAuthToken = "s2h-auth-token"
VKS2HServerURL = "s2h-server-url"
VKS2HServiceName = "s2h-service-name"
VKS2HServiceScheme = "s2h-service-scheme"
VKS2HImage = "s2h-image"
VKS2HHTTPProxy = "http-proxy"
VKS2HHTTPSProxy = "https-proxy"
VKS2HNoProxy = "no-proxy"
VKS2HExternalURL = "s2h-external-url"
VKTeamcityURL = "teamcity-url"
VKTeamcityUsername = "teamcity-username"
VKTeamcityPassword = "teamcity-password"
VKSlackToken = "slack-token"
VKActivePromotionConcurrences = "active-promotion-concurrences"
VKActivePromotionTimeout = "active-promotion-timeout"
VKActivePromotionDemotionTimeout = "active-demotion-timeout"
VKActivePromotionRollbackTimeout = "active-promotion-rollback-timeout"
VKActivePromotionTearDownDuration = "active-promotion-teardown-duration"
VKActivePromotionMaxHistories = "active-promotion-max-histories"
VKQueueMaxHistoryDays = "queue-max-history-days"
)
type ConfigurationJSON struct {
GitRevision string `json:"gitRevision"`
Configuration *Configuration `json:"config"`
}