From e9bc4929c9afd21b128e6d53589339583c4ab3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=BCller=20=28HG=29?= <113037816+muellerst-hg@users.noreply.github.com> Date: Thu, 23 Feb 2023 08:29:09 +0100 Subject: [PATCH] Add imagePullSecrets to vulnerability_operator deployment (#140) * Add imagePullSecrets to vulnerability_operator deployment * Add values example * default pull secret value is empty array * Minor update chart version --- charts/vulnerability-operator/Chart.yaml | 2 +- charts/vulnerability-operator/templates/deployment.yaml | 4 ++++ charts/vulnerability-operator/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/vulnerability-operator/Chart.yaml b/charts/vulnerability-operator/Chart.yaml index cdc818e..ce14ded 100644 --- a/charts/vulnerability-operator/Chart.yaml +++ b/charts/vulnerability-operator/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Scans SBOMs for vulnerabilities name: vulnerability-operator -version: 0.15.0 +version: 0.16.0 appVersion: 0.15.0 home: https://github.com/ckotzbauer/vulnerability-operator sources: diff --git a/charts/vulnerability-operator/templates/deployment.yaml b/charts/vulnerability-operator/templates/deployment.yaml index 78fdb2f..f0d5532 100644 --- a/charts/vulnerability-operator/templates/deployment.yaml +++ b/charts/vulnerability-operator/templates/deployment.yaml @@ -77,6 +77,10 @@ spec: configMap: name: {{ template "app.name" . }} {{- end }} + {{- with .Values.image.pullSecrets }} + imagePullSecrets: +{{ toYaml . | indent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/charts/vulnerability-operator/values.yaml b/charts/vulnerability-operator/values.yaml index be26292..613f6ea 100644 --- a/charts/vulnerability-operator/values.yaml +++ b/charts/vulnerability-operator/values.yaml @@ -6,6 +6,7 @@ image: repository: ghcr.io/ckotzbauer/vulnerability-operator tag: "" pullPolicy: IfNotPresent + pullSecrets: [] args: {}