Path: blob/main/install/installer/pkg/common/certificate.go
2500 views
// Copyright (c) 2023 Gitpod GmbH. All rights reserved.1/// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package common56import (7corev1 "k8s.io/api/core/v1"8)910const CUSTOM_CA_MOUNT_PATH = "/etc/ssl/certs/ca-certificates.crt"1112func CAVolume() corev1.Volume {13return corev1.Volume{14Name: "ca-certificates",15VolumeSource: corev1.VolumeSource{16ConfigMap: &corev1.ConfigMapVolumeSource{17LocalObjectReference: corev1.LocalObjectReference{Name: "gitpod-ca-bundle"},18},19},20}21}2223func CAVolumeMount() corev1.VolumeMount {24return corev1.VolumeMount{25Name: "ca-certificates",26MountPath: CUSTOM_CA_MOUNT_PATH,27SubPath: "ca-certificates.crt",28ReadOnly: true,29}30}313233