Skip to content

Commit

Permalink
Add extraVolumes-attribute to kyverno- and trivy-plugin (#581)
Browse files Browse the repository at this point in the history
Signed-off-by: Vidar Anima Normann <1858786+vidarno@users.noreply.github.com>
  • Loading branch information
vidarno authored Nov 17, 2024
1 parent 66e5767 commit 6f9bd02
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
14 changes: 14 additions & 0 deletions charts/policy-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,13 @@ plugin:
# -- Affinity constraints.
affinity: {}

extraVolumes:
# -- Deployment volumeMounts
volumeMounts: []

# -- Deployment values
volumes: []

trivy:
# -- (bool) Enable Trivy Operator Plugin
enabled: false
Expand Down Expand Up @@ -1499,6 +1506,13 @@ plugin:
# -- Affinity constraints.
affinity: {}

extraVolumes:
# -- Deployment volumeMounts
volumeMounts: []

# -- Deployment values
volumes: []

monitoring:
# -- Enables the Prometheus Operator integration
enabled: false
Expand Down

0 comments on commit 6f9bd02

Please sign in to comment.