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