From 803f400b27a9f9502bdebe463e04092f85906a13 Mon Sep 17 00:00:00 2001 From: Andre Staats Date: Tue, 19 Sep 2023 14:11:14 +0200 Subject: [PATCH] Add image pull secrets, so that private registries can be used ex artifactory --- snyk-monitor/templates/deployment.yaml | 4 ++++ snyk-monitor/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/snyk-monitor/templates/deployment.yaml b/snyk-monitor/templates/deployment.yaml index 9aeba1bc6..7c6f3cab4 100644 --- a/snyk-monitor/templates/deployment.yaml +++ b/snyk-monitor/templates/deployment.yaml @@ -33,6 +33,10 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.securityContext.fsGroup }} securityContext: fsGroup: {{ int . }} diff --git a/snyk-monitor/values.yaml b/snyk-monitor/values.yaml index bb23d8d3f..f66d21313 100644 --- a/snyk-monitor/values.yaml +++ b/snyk-monitor/values.yaml @@ -28,6 +28,9 @@ scope: Cluster # The endpoint that being used to transmit monitored information integrationApi: "" +# Secrets to use when pulling images from private registries ex artifactory +imagePullSecrets: [] + # The registry from which to pull the snyk-monitor image. image: repository: snyk/kubernetes-monitor