From 1246077b08e4cf78697cb1912b6c6db4e6424e98 Mon Sep 17 00:00:00 2001 From: Floris Feddema Date: Tue, 9 Jul 2024 22:07:21 +0200 Subject: [PATCH] adguard: fix init job script --- charts/adguard/Chart.yaml | 2 +- .../templates/primary/sync/init-secret-job/init-secret-job.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/adguard/Chart.yaml b/charts/adguard/Chart.yaml index 703e84e..36b680f 100644 --- a/charts/adguard/Chart.yaml +++ b/charts/adguard/Chart.yaml @@ -1,3 +1,3 @@ apiVersion: v2 name: adguard -version: 1.1.4 +version: 1.1.5 diff --git a/charts/adguard/templates/primary/sync/init-secret-job/init-secret-job.yaml b/charts/adguard/templates/primary/sync/init-secret-job/init-secret-job.yaml index e70b08b..053175b 100644 --- a/charts/adguard/templates/primary/sync/init-secret-job/init-secret-job.yaml +++ b/charts/adguard/templates/primary/sync/init-secret-job/init-secret-job.yaml @@ -27,6 +27,6 @@ spec: command: - sh - "-c" - - kubectl get secret {{ template "common.fullname" . }}-secondary-password -n {{ .Release.Namespace }} >/dev/null 2>&1 || kubectl create secret -n default generic {{ template "common.fullname" . }}-secondary-password -n {{ .Release.Namespace }} --password=$(openssl rand -base64 32) + - kubectl get secret {{ template "common.fullname" . }}-secondary-password -n {{ .Release.Namespace }} >/dev/null 2>&1 || kubectl create secret -n default generic {{ template "common.fullname" . }}-secondary-password -n {{ .Release.Namespace }} --from-literal=password=$(openssl rand -base64 32) restartPolicy: OnFailure serviceAccountName: {{ template "common.fullname" . }}-init-secret-job