-
Notifications
You must be signed in to change notification settings - Fork 11
/
const.go
76 lines (68 loc) · 3.23 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package internal
import (
s2hv1 "github.com/agoda-com/samsahai/api/v1"
)
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
ResourcesQuotaSuffix = "-resources"
// 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"
VKS2HExternalURL = "s2h-external-url"
VKTeamcityURL = "teamcity-url"
VKTeamcityUsername = "teamcity-username"
VKTeamcityPassword = "teamcity-password"
VKGitlabURL = "gitlab-url"
VKGitlabToken = "gitlab-token"
VKSlackToken = "slack-token"
VKGithubURL = "github-url"
VKGithubToken = "github-token"
VKMSTeamsTenantID = "ms-teams-tenant-id"
VKMSTeamsClientID = "ms-teams-client-id"
VKMSTeamsClientSecret = "ms-teams-client-secret"
VKMSTeamsUsername = "ms-teams-username"
VKMSTeamsPassword = "ms-teams-password"
VKActivePromotionConcurrences = "active-promotion-concurrences"
VKActivePromotionTimeout = "active-promotion-timeout"
VKActivePromotionDemotionTimeout = "active-demotion-timeout"
VKActivePromotionRollbackTimeout = "active-promotion-rollback-timeout"
VKActivePromotionTearDownDuration = "active-promotion-teardown-duration"
VKActivePromotionMaxRetry = "active-promotion-max-retry"
VKActivePromotionMaxHistories = "active-promotion-max-histories"
VKActivePromotionOnTeamCreation = "active-promotion-on-team-creation"
VKQueueMaxHistoryDays = "queue-max-history-days"
VKPRQueueConcurrences = "pr-queue-concurrences"
VKPRVerificationMaxRetry = "pr-verification-max-retry"
VKPRTriggerMaxRetry = "pr-trigger-max-retry"
VKPRTriggerPollingTime = "pr-trigger-polling-time"
VKPullRequestQueueMaxHistoryDays = "pr-queue-max-history-days"
VKCheckerCPU = "checker-cpu"
VKCheckerMemory = "checker-memory"
VKInitialResourcesQuotaCPU = "initial-resources-quota-cpu"
VKInitialResourcesQuotaMemory = "initial-resources-quota-memory"
)
type ConfigurationJSON struct {
GitRevision string `json:"gitRevision"`
Configuration *s2hv1.ConfigSpec `json:"config"`
}