From 7913734f08038a7c5f058dc5b60eed3130c3dbfd Mon Sep 17 00:00:00 2001 From: Roman Khabarov Date: Mon, 28 Oct 2024 13:33:46 +0100 Subject: [PATCH] fix --- charts/gitlab-mr-combiner/templates/deployment.yaml | 5 +++++ charts/gitlab-mr-combiner/templates/secret.yaml | 1 + charts/gitlab-mr-combiner/values.yaml | 1 + 3 files changed, 7 insertions(+) diff --git a/charts/gitlab-mr-combiner/templates/deployment.yaml b/charts/gitlab-mr-combiner/templates/deployment.yaml index c356a69..0dcdf83 100644 --- a/charts/gitlab-mr-combiner/templates/deployment.yaml +++ b/charts/gitlab-mr-combiner/templates/deployment.yaml @@ -37,6 +37,11 @@ spec: secretKeyRef: name: {{ .Chart.Name }}-secrets key: gitlabToken + - name: SECRET_TOKEN + valueFrom: + secretKeyRef: + name: {{ .Chart.Name }}-secrets + key: secretToken resources: {{ toYaml .Values.resources | indent 12 }} volumeMounts: diff --git a/charts/gitlab-mr-combiner/templates/secret.yaml b/charts/gitlab-mr-combiner/templates/secret.yaml index 9e0c5b1..db0d88e 100644 --- a/charts/gitlab-mr-combiner/templates/secret.yaml +++ b/charts/gitlab-mr-combiner/templates/secret.yaml @@ -7,3 +7,4 @@ type: Opaque data: gitlabToken: {{ .Values.secret.gitlabToken | b64enc | quote }} sshKey: {{ .Values.secret.sshKey | b64enc | quote }} + secretToken: {{ .Values.secret.secretToken | b64enc | quote }} diff --git a/charts/gitlab-mr-combiner/values.yaml b/charts/gitlab-mr-combiner/values.yaml index 647d270..a67223d 100644 --- a/charts/gitlab-mr-combiner/values.yaml +++ b/charts/gitlab-mr-combiner/values.yaml @@ -34,6 +34,7 @@ secret: your ssh key here -----END OPENSSH PRIVATE KEY----- gitlabToken: "" + secretToken: "" podSecurityContext: {} # fsGroup: 2000