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:
parent
66e5767ee2
commit
6f9bd02cb1
3 changed files with 26 additions and 0 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue