From b10ec1ee1a6ae2bcb83b138f60c0b56ca3c8df44 Mon Sep 17 00:00:00 2001 From: Katie Armstrong Date: Fri, 17 Feb 2023 13:53:17 +0000 Subject: [PATCH] feat: add optional service acc token env var --- snyk-monitor/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snyk-monitor/templates/deployment.yaml b/snyk-monitor/templates/deployment.yaml index 1e34d3237..2e858b794 100644 --- a/snyk-monitor/templates/deployment.yaml +++ b/snyk-monitor/templates/deployment.yaml @@ -113,6 +113,12 @@ spec: secretKeyRef: name: {{ .Values.monitorSecrets }} key: integrationId + - name: SNYK_SERVICE_ACCOUNT_API_TOKEN + valueFrom: + secretKeyRef: + name: {{ .Values.monitorSecrets }} + key: serviceAccountApiToken + optional: true - name: SNYK_WATCH_NAMESPACE value: {{ include "snyk-monitor.scope" . }} - name: SNYK_DEPLOYMENT_NAMESPACE