Skip to content

Commit

Permalink
[installer] Add custom CA cert to proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Dec 19, 2024
1 parent 6c72f40 commit a2e734b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install/installer/pkg/components/proxy/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,18 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
SecretName: ctx.Config.Certificate.Name,
},
},
}}
},
common.CAVolume(),
}

volumeMounts := []corev1.VolumeMount{{
Name: "vhosts",
MountPath: "/etc/caddy/vhosts",
}, {
Name: "config-certificates",
MountPath: "/etc/caddy/certificates",
}}
},
common.CAVolumeMount()}

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

0 comments on commit a2e734b

Please sign in to comment.