Skip to content

Commit 5e4486e

Browse files
committed
[installer] Add custom CA cert to proxy
1 parent ded0f35 commit 5e4486e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install/installer/pkg/components/proxy/deployment.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,18 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
5252
SecretName: ctx.Config.Certificate.Name,
5353
},
5454
},
55-
}}
55+
},
56+
common.CAVolume(),
57+
}
5658

5759
volumeMounts := []corev1.VolumeMount{{
5860
Name: "vhosts",
5961
MountPath: "/etc/caddy/vhosts",
6062
}, {
6163
Name: "config-certificates",
6264
MountPath: "/etc/caddy/certificates",
63-
}}
65+
},
66+
common.CAVolumeMount()}
6467

6568
if pointer.BoolDeref(ctx.Config.ContainerRegistry.InCluster, false) {
6669
volumes = append(volumes, corev1.Volume{

0 commit comments

Comments
 (0)