Skip to content
Snippets Groups Projects
Verified Commit 0f21ec72 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

indexer_storage: Use config-utils image to ease configuration step

Refs. swh/infra/sysadm-environment#5183
parent e4c11a65
No related branches found
No related tags found
No related merge requests found
......@@ -45,13 +45,10 @@ spec:
{{- end }}
initContainers:
- name: prepare-configuration
image: debian:bullseye
image: {{ $.Values.swh_utils_image }}:{{ $.Values.swh_utils_image_version }}
imagePullPolicy: IfNotPresent
command:
- /bin/bash
args:
- -c
- eval echo "\"$(</etc/swh/configuration-template/config.yml.template)\"" > /etc/swh/config.yml
- /entrypoints/prepare-configuration.sh
env:
{{ include "swh.secrets.environment" (dict "configurationRef" $storage_config.indexerStorageConfigurationRef
"Values" $.Values) | nindent 10 }}
......@@ -60,6 +57,9 @@ spec:
mountPath: /etc/swh
- name: configuration-template
mountPath: /etc/swh/configuration-template
- name: config-utils
mountPath: /entrypoints
readOnly: true
{{- if $storage_config.checkDbVersion }}
{{ include "swh.checkDatabaseVersionContainer" (dict "Values" $.Values
"imagePrefixName" "swh_indexer_storage_image"
......@@ -150,6 +150,10 @@ spec:
configMap:
name: database-utils
defaultMode: 0555
- name: config-utils
configMap:
name: config-utils
defaultMode: 0555
{{ end }}
{{ end -}}
{{- end -}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment