From a2e734b51dbb53f186e85241c9dcb7d0377861a3 Mon Sep 17 00:00:00 2001 From: Gero Posmyk-Leinemann Date: Thu, 19 Dec 2024 16:11:33 +0000 Subject: [PATCH] [installer] Add custom CA cert to proxy --- install/installer/pkg/components/proxy/deployment.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/installer/pkg/components/proxy/deployment.go b/install/installer/pkg/components/proxy/deployment.go index 71b407b08b074f..063bc61f700c39 100644 --- a/install/installer/pkg/components/proxy/deployment.go +++ b/install/installer/pkg/components/proxy/deployment.go @@ -52,7 +52,9 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) { SecretName: ctx.Config.Certificate.Name, }, }, - }} + }, + common.CAVolume(), + } volumeMounts := []corev1.VolumeMount{{ Name: "vhosts", @@ -60,7 +62,8 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) { }, { Name: "config-certificates", MountPath: "/etc/caddy/certificates", - }} + }, + common.CAVolumeMount()} if pointer.BoolDeref(ctx.Config.ContainerRegistry.InCluster, false) { volumes = append(volumes, corev1.Volume{