From baca43f78fe6e545285c3ec29a957fb2966ee505 Mon Sep 17 00:00:00 2001 From: Dmytro Sydorov Date: Mon, 14 Aug 2023 13:33:58 +0200 Subject: [PATCH] fix: init container command By default it's using a wrong config file name: '/var/config/default.config.yaml' Change-Id: Id7758ad81912ebebe361c3718fbe6ee17b909f76 --- helm-charts/gerrit/templates/gerrit.stateful-set.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helm-charts/gerrit/templates/gerrit.stateful-set.yaml b/helm-charts/gerrit/templates/gerrit.stateful-set.yaml index 2f154d8..e1fb931 100644 --- a/helm-charts/gerrit/templates/gerrit.stateful-set.yaml +++ b/helm-charts/gerrit/templates/gerrit.stateful-set.yaml @@ -103,6 +103,14 @@ spec: - name: gerrit-init image: {{ template "registry" . }}{{ .Values.gerrit.images.gerritInit }}:{{ .Values.images.version }} imagePullPolicy: {{ .Values.images.imagePullPolicy }} + command: + - python3 + - /var/tools/gerrit-initializer + - -s + - /var/gerrit + - -c + - /var/config/gerrit-init.yaml + - init env: - name: POD_NAME valueFrom: