Skip to content

Commit

Permalink
[sub] fix: wrong secret name (#882)
Browse files Browse the repository at this point in the history

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
  • Loading branch information
guilhem-barthes authored Apr 10, 2024
1 parent d9f71db commit a5e0d80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/substrapp/compute_tasks/image_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _build_pod_spec(dockerfile_mount_path: str, image_tag: str) -> kubernetes.cl
private_ca_volume = kubernetes.client.V1Volume(
name=CA_SECRET_NAME,
secret=kubernetes.client.V1SecretVolumeSource(
name=CA_SECRET_NAME,
secret_name=CA_SECRET_NAME,
),
)
volumes.append(private_ca_volume)
Expand Down Expand Up @@ -287,8 +287,8 @@ def _build_container(dockerfile_mount_path: str, image_tag: str) -> kubernetes.c
volume_mounts.append(docker_config)

if PRIVATE_CA_ENABLED:
docker_config = kubernetes.client.V1VolumeMount(name=CA_SECRET_NAME, mount_path="/kaniko/ssl/certs")
volume_mounts.append(docker_config)
certs_mount = kubernetes.client.V1VolumeMount(name=CA_SECRET_NAME, mount_path="/kaniko/ssl/certs")
volume_mounts.append(certs_mount)

return kubernetes.client.V1Container(
name=KANIKO_CONTAINER_NAME,
Expand Down

0 comments on commit a5e0d80

Please sign in to comment.