1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

Add extraVolumes-attribute to kyverno- and trivy-plugin (#581)

Signed-off-by: Vidar Anima Normann <1858786+vidarno@users.noreply.github.com>
This commit is contained in:
Vidar Normann 2024-11-17 18:58:48 +01:00 committed by GitHub
parent 66e5767ee2
commit 6f9bd02cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 0 deletions

View file

@ -70,6 +70,9 @@ spec:
mountPath: /app/config.yaml
subPath: config.yaml
readOnly: true
{{- with .Values.plugin.kyverno.extraVolumes.volumeMounts }}
{{ toYaml . | nindent 10 | trim }}
{{- end }}
env:
- name: POD_NAMESPACE
valueFrom:
@ -89,6 +92,9 @@ spec:
secret:
secretName: {{ include "kyverno-plugin.fullname" . }}-config
optional: true
{{- with .Values.plugin.kyverno.extraVolumes.volumes }}
{{ toYaml . | nindent 6 | trim }}
{{- end }}
{{- with .Values.plugin.kyverno.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View file

@ -70,6 +70,9 @@ spec:
mountPath: /app/config.yaml
subPath: config.yaml
readOnly: true
{{- with .Values.plugin.trivy.extraVolumes.volumeMounts }}
{{ toYaml . | nindent 10 | trim }}
{{- end }}
env:
- name: POD_NAMESPACE
valueFrom:
@ -83,6 +86,9 @@ spec:
secret:
secretName: {{ include "trivy-plugin.fullname" . }}-config
optional: true
{{- with .Values.plugin.trivy.extraVolumes.volumes }}
{{ toYaml . | nindent 6 | trim }}
{{- end }}
{{- with .Values.plugin.trivy.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View file

@ -1326,6 +1326,13 @@ plugin:
# -- Affinity constraints.
affinity: {}
extraVolumes:
# -- Deployment volumeMounts
volumeMounts: []
# -- Deployment values
volumes: []
trivy:
# -- (bool) Enable Trivy Operator Plugin
enabled: false
@ -1499,6 +1506,13 @@ plugin:
# -- Affinity constraints.
affinity: {}
extraVolumes:
# -- Deployment volumeMounts
volumeMounts: []
# -- Deployment values
volumes: []
monitoring:
# -- Enables the Prometheus Operator integration
enabled: false