Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/common/certificate.go
2500 views
1
// Copyright (c) 2023 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
corev1 "k8s.io/api/core/v1"
9
)
10
11
const CUSTOM_CA_MOUNT_PATH = "/etc/ssl/certs/ca-certificates.crt"
12
13
func CAVolume() corev1.Volume {
14
return corev1.Volume{
15
Name: "ca-certificates",
16
VolumeSource: corev1.VolumeSource{
17
ConfigMap: &corev1.ConfigMapVolumeSource{
18
LocalObjectReference: corev1.LocalObjectReference{Name: "gitpod-ca-bundle"},
19
},
20
},
21
}
22
}
23
24
func CAVolumeMount() corev1.VolumeMount {
25
return corev1.VolumeMount{
26
Name: "ca-certificates",
27
MountPath: CUSTOM_CA_MOUNT_PATH,
28
SubPath: "ca-certificates.crt",
29
ReadOnly: true,
30
}
31
}
32
33