diff --git a/charts/policy-reporter/Chart.yaml b/charts/policy-reporter/Chart.yaml index cc105e87..70f58ebc 100644 --- a/charts/policy-reporter/Chart.yaml +++ b/charts/policy-reporter/Chart.yaml @@ -5,7 +5,7 @@ description: | It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord type: application -version: 2.21.3 +version: 2.21.4 appVersion: 2.17.4 icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png diff --git a/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml b/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml index a714a431..ce642f4e 100644 --- a/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml +++ b/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml @@ -103,6 +103,9 @@ spec: key: password optional: false {{- end }} + {{- with .Values.envVars }} + {{- . | toYaml | trim | nindent 10 }} + {{- end }} volumes: - name: config-file secret: diff --git a/charts/policy-reporter/charts/kyvernoPlugin/values.yaml b/charts/policy-reporter/charts/kyvernoPlugin/values.yaml index a2e3112f..cbc71e7b 100644 --- a/charts/policy-reporter/charts/kyvernoPlugin/values.yaml +++ b/charts/policy-reporter/charts/kyvernoPlugin/values.yaml @@ -91,6 +91,9 @@ podAnnotations: {} # Key/value pairs that are attached to pods. podLabels: {} +# Allow additional env variables to be added +envVars: [] + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little diff --git a/charts/policy-reporter/charts/ui/templates/deployment.yaml b/charts/policy-reporter/charts/ui/templates/deployment.yaml index 9100cad5..f61126ba 100644 --- a/charts/policy-reporter/charts/ui/templates/deployment.yaml +++ b/charts/policy-reporter/charts/ui/templates/deployment.yaml @@ -81,6 +81,9 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + {{- with .Values.envVars }} + {{- . | toYaml | trim | nindent 10 }} + {{- end }} volumes: - name: config-file configMap: diff --git a/charts/policy-reporter/charts/ui/values.yaml b/charts/policy-reporter/charts/ui/values.yaml index b757617c..92873265 100644 --- a/charts/policy-reporter/charts/ui/values.yaml +++ b/charts/policy-reporter/charts/ui/values.yaml @@ -83,7 +83,7 @@ api: # use redis as external log storage instead of an in memory store # recommended when using a HA setup with more then one replica -# to get all logs on each instance +# to get all logs on each instance redis: enabled: false address: "" @@ -134,6 +134,9 @@ podAnnotations: {} # Key/value pairs that are attached to pods. podLabels: {} +# Allow additional env variables to be added +envVars: [] + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little diff --git a/charts/policy-reporter/templates/deployment.yaml b/charts/policy-reporter/templates/deployment.yaml index b1d67496..34edcb20 100644 --- a/charts/policy-reporter/templates/deployment.yaml +++ b/charts/policy-reporter/templates/deployment.yaml @@ -102,6 +102,9 @@ spec: fieldRef: fieldPath: metadata.name {{- end }} + {{- with .Values.envVars }} + {{- . | toYaml | trim | nindent 10 }} + {{- end }} volumes: - name: sqlite {{- if .Values.sqliteVolume }} diff --git a/charts/policy-reporter/values.yaml b/charts/policy-reporter/values.yaml index 762d4fc0..c53d2ec0 100644 --- a/charts/policy-reporter/values.yaml +++ b/charts/policy-reporter/values.yaml @@ -76,6 +76,9 @@ podAnnotations: {} # Key/value pairs that are attached to pods. podLabels: {} +# Allow additional env variables to be added +envVars: [] + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little