Skip to content

Commit

Permalink
fix: Consul template mount path customization (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
akijakya authored Nov 10, 2023
1 parent 66b3b49 commit 933fe1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webhook/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func getContainers(podSecurityContext *corev1.PodSecurityContext, vaultConfig Va

containerVolMounts = append(containerVolMounts, corev1.VolumeMount{
Name: "ct-secrets",
MountPath: "/vault/secrets",
MountPath: vaultConfig.ConfigfilePath,
}, corev1.VolumeMount{
Name: VaultEnvVolumeName,
MountPath: "/home/consul-template",
Expand Down Expand Up @@ -810,7 +810,7 @@ func getAgentContainers(originalContainers []corev1.Container, podSecurityContex

containerVolMounts = append(containerVolMounts, serviceAccountMount, corev1.VolumeMount{
Name: "agent-secrets",
MountPath: "/vault/secrets",
MountPath: vaultConfig.ConfigfilePath,
}, corev1.VolumeMount{
Name: "agent-configmap",
MountPath: "/vault/config/config.hcl",
Expand Down

0 comments on commit 933fe1b

Please sign in to comment.