Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/common/constants.go
2500 views
1
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package common
6
7
import (
8
"time"
9
10
"github.com/gitpod-io/gitpod/installer/pkg/config"
11
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
12
)
13
14
// This file exists to break cyclic-dependency errors
15
16
var (
17
GitpodContainerRegistry = config.GitpodContainerRegistry
18
)
19
20
const (
21
AppName = "gitpod"
22
BlobServeServicePort = 4000
23
CertManagerCAIssuer = "gitpod-ca-issuer"
24
DockerRegistryURL = "docker.io"
25
DockerRegistryName = "registry"
26
InClusterDbSecret = "mysql"
27
KubeRBACProxyRepo = "quay.io"
28
KubeRBACProxyImage = "brancz/kube-rbac-proxy"
29
KubeRBACProxyTag = "v0.19.0"
30
MinioServiceAPIPort = 9000
31
MonitoringChart = "monitoring"
32
ProxyComponent = "proxy"
33
ProxyConfigcatPort = 9547
34
ProxyContainerHTTPPort = 80
35
ProxyContainerHTTPName = "http"
36
ProxyContainerHTTPSPort = 443
37
ProxyContainerHTTPSName = "https"
38
RegistryAuthSecret = "builtin-registry-auth"
39
RegistryTLSCertSecret = "builtin-registry-certs"
40
RegistryFacadeComponent = "registry-facade"
41
RegistryFacadeServicePort = 31750
42
RegistryFacadeTLSCertSecret = "builtin-registry-facade-cert"
43
ServerComponent = "server"
44
ServerIAMSessionPort = 9876
45
ServerInstallationAdminPort = 9000
46
ServerGRPCAPIPort = 9877
47
ServerPublicAPIPort = 3001
48
SystemNodeCritical = "system-node-critical"
49
PublicApiComponent = "public-api-server"
50
UsageComponent = "usage"
51
WSManagerMk2Component = "ws-manager-mk2"
52
WSManagerBridgeComponent = "ws-manager-bridge"
53
WSProxyComponent = "ws-proxy"
54
ImageBuilderComponent = "image-builder-mk3"
55
ImageBuilderRPCPort = 8080
56
ImageBuilderTLSSecret = "image-builder-mk3-tls"
57
ImageBuilderVolumeTLSCerts = "image-builder-mk3-tls-certs"
58
DebugNodePort = 9229
59
DBCaCertEnvVarName = "DB_CA_CERT"
60
DBCaFileName = "ca.crt"
61
DBCaBasePath = "/db-ssl"
62
DBCaPath = DBCaBasePath + "/" + DBCaFileName
63
WorkspaceSecretsNamespace = "workspace-secrets"
64
AnnotationConfigChecksum = "gitpod.io/checksum_config"
65
DatabaseConfigMountPath = "/secrets/database-config"
66
AuthPKISecretName = "auth-pki"
67
IDEServiceComponent = "ide-service"
68
OpenVSXProxyComponent = "openvsx-proxy"
69
DashboardComponent = "dashboard"
70
IDEMetricsComponent = "ide-metrics"
71
IDEMetricsPort = 3000
72
IDEProxyComponent = "ide-proxy"
73
IDEProxyPort = 80
74
)
75
76
var (
77
InternalCertDuration = &metav1.Duration{Duration: time.Hour * 24 * 90}
78
)
79
80