feat: add extraVolumeMounts and reports mount (#178)

* feat: add extraVolumeMounts and reports mount

Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>

* fix: add newline

Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>

* fix: use other source

Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>

---------

Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>
This commit is contained in:
Christian Hopf 2023-12-12 10:31:39 +01:00 committed by GitHub
parent b14b844461
commit e44a173b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 2 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2
description: Catalogue all images of a Kubernetes cluster to multiple targets with Syft
name: sbom-operator
version: 0.30.0
version: 0.30.1
appVersion: 0.29.0
home: https://github.com/ckotzbauer/sbom-operator
sources:

View File

@ -74,6 +74,9 @@ spec:
name: work
- mountPath: /tmp
name: tmp
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- end }}
volumes:
- name: work
emptyDir: {}

View File

@ -53,3 +53,5 @@ tolerations: []
affinity: {}
extraVolumes: []
extraVolumeMounts: []

View File

@ -1,7 +1,7 @@
apiVersion: v2
description: Scans SBOMs for vulnerabilities
name: vulnerability-operator
version: 0.23.0
version: 0.23.1
appVersion: 0.21.0
home: https://github.com/ckotzbauer/vulnerability-operator
sources:

View File

@ -0,0 +1,2 @@
args:
sources: kubernetes

View File

@ -62,6 +62,10 @@ spec:
resources:
{{ toYaml .Values.resources | indent 12 }}
volumeMounts:
{{- if .Values.useReportsEmptyDir }}
- mountPath: /reports
name: reports
{{- end }}
- mountPath: /work
name: work
- mountPath: /tmp
@ -70,7 +74,14 @@ spec:
- mountPath: /vuln
name: grype
{{- end }}
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- end }}
volumes:
{{- if .Values.useReportsEmptyDir }}
- name: reports
emptyDir: {}
{{- end }}
- name: work
emptyDir: {}
- name: tmp

View File

@ -12,6 +12,8 @@ args: {}
envVars: {}
useReportsEmptyDir: true
ignoreRules: ""
# ignore:
# # This is the full set of supported rule fields:
@ -107,3 +109,5 @@ tolerations: []
affinity: {}
extraVolumes: []
extraVolumeMounts: []