Skip to content

Commit

Permalink
chore: add certificate to kaniko
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy committed Apr 4, 2024
1 parent 059bbb3 commit 15d3a48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/builder/image_builder/image_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ def _build_container(dockerfile_mount_path: str, image_tag: str) -> kubernetes.c
return kubernetes.client.V1Container(
name=KANIKO_CONTAINER_NAME,
image="busybox",
command="sleep 100000",
args=args,
command=["sleep", "100000"],
args=None,
volume_mounts=volume_mounts,
security_context=container_security_context,
)
Expand Down
2 changes: 1 addition & 1 deletion charts/substra-backend/templates/statefulset-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ spec:
- name: PRIVATE_CA_CONFIGMAP_NAME
value: {{ .Values.privateCa.configMap.name }}
- name: PRIVATE_CA_FILENAME
value: {{ .Values.privateCa.configMap.filename }}
value: {{ .Values.privateCa.configMap.fileName }}
{{- end }}
- name: NAMESPACE
valueFrom:
Expand Down
3 changes: 1 addition & 2 deletions charts/substra-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DataSampleStorageInServerMedia: false
privateCa:
## @param privateCa.enabled Run the init container injecting the private CA certificate
##
enabled: true
enabled: false
## @param privateCa.image.repository Private CA injector image
## @param privateCa.image.tag Private CA injector tag
## @param privateCa.image.pullPolicy Private CA injector pull policy
Expand All @@ -37,7 +37,6 @@ privateCa:
configMap:
name: substra-private-ca
data:
blabla
fileName: private-ca.crt

## @section Server settings
Expand Down

0 comments on commit 15d3a48

Please sign in to comment.