diff --git a/charts/policy-reporter/Chart.yaml b/charts/policy-reporter/Chart.yaml index 267ee373..24fbff58 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.16.0 +version: 2.17.0 appVersion: 2.12.0 icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png diff --git a/charts/policy-reporter/templates/deployment.yaml b/charts/policy-reporter/templates/deployment.yaml index d0b269af..04943401 100644 --- a/charts/policy-reporter/templates/deployment.yaml +++ b/charts/policy-reporter/templates/deployment.yaml @@ -100,7 +100,11 @@ spec: {{- end }} volumes: - name: sqlite + {{- if .Values.sqliteVolume }} + {{- toYaml .Values.sqliteVolume | nindent 8 }} + {{- else }} emptyDir: {} + {{- end }} - name: config-file secret: {{- if and .Values.existingTargetConfig.enabled .Values.existingTargetConfig.name }} diff --git a/charts/policy-reporter/values.yaml b/charts/policy-reporter/values.yaml index d6d5a3ec..d5200f76 100644 --- a/charts/policy-reporter/values.yaml +++ b/charts/policy-reporter/values.yaml @@ -530,3 +530,8 @@ extraVolumes: volumeMounts: [] volumes: [] + +# If set the volume for sqlite is freely configurable below "- name: sqlite". If no value is set an emptyDir is used. +sqliteVolume: {} + # emptyDir: + # sizeLimit: 10Mi