From bb8e3f26deaf4d3831b37465e5ded1cab85fe047 Mon Sep 17 00:00:00 2001 From: gnmahanth Date: Mon, 23 Sep 2024 19:31:49 +0530 Subject: [PATCH] add support for extra env vars, required for azure --- helm-chart/deepfence-cloud-scanner/Chart.yaml | 2 +- .../deepfence-cloud-scanner/templates/deployment.yaml | 4 ++++ helm-chart/deepfence-cloud-scanner/values.yaml | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/helm-chart/deepfence-cloud-scanner/Chart.yaml b/helm-chart/deepfence-cloud-scanner/Chart.yaml index 2be7cbf..8d8313c 100644 --- a/helm-chart/deepfence-cloud-scanner/Chart.yaml +++ b/helm-chart/deepfence-cloud-scanner/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2.3.1 +version: 2.3.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm-chart/deepfence-cloud-scanner/templates/deployment.yaml b/helm-chart/deepfence-cloud-scanner/templates/deployment.yaml index 23a10db..15cb94e 100644 --- a/helm-chart/deepfence-cloud-scanner/templates/deployment.yaml +++ b/helm-chart/deepfence-cloud-scanner/templates/deployment.yaml @@ -74,6 +74,10 @@ spec: value: "21600" - name: CLOUD_SCANNER_POLICY value: "{{ .Values.cloudAccount.cloudScannerPolicy }}" + {{- range $k, $v := .Values.env_vars }} + - name: {{ $k }} + value: {{ $v }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.volumeMounts }} diff --git a/helm-chart/deepfence-cloud-scanner/values.yaml b/helm-chart/deepfence-cloud-scanner/values.yaml index b9b05d5..831dafa 100644 --- a/helm-chart/deepfence-cloud-scanner/values.yaml +++ b/helm-chart/deepfence-cloud-scanner/values.yaml @@ -80,6 +80,14 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" +env_vars: {} + ## required for azure cloud + # AZURE_TENANT_ID: + # AZURE_REGION: + # AZURE_CLIENT_ID : + # AZURE_CLIENT_SECRET: + # AZURE_SUBSCRIPTION_ID: + imagePullSecrets: [] nameOverride: "" fullnameOverride: ""