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