Skip to content

Commit

Permalink
chore(node-analyzer): don't mount volumes used by runtimeScanner when…
Browse files Browse the repository at this point in the history
… it's disabled
  • Loading branch information
francesco-furlan committed Jul 31, 2023
1 parent dde754d commit 6b1772a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/node-analyzer/templates/daemonset-node-analyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ spec:
name: {{ include "agent.configmapName" . }}
optional: true
{{- end }}
{{- if include "nodeAnalyzer.deployRuntimeScanner" . }}
# Needed for cri-o image inspection.
# cri-o and especially OCP 4.x by default use containers/storage to handle images, and this makes sure that the
# analyzer has access to the configuration. This file is mounted read-only.
Expand All @@ -66,6 +67,7 @@ spec:
configMap:
name: {{ .Release.Name }}-image-analyzer
optional: true
{{- end }}
{{- if or (include "nodeAnalyzer.deployHostScanner" .) (include "nodeAnalyzer.deployBenchmarkRunner" .) (include "nodeAnalyzer.deployHostAnalyzer" .) .Values.global.kspm.deploy }}
# Needed to run Benchmarks and Host Analyzer/Scanner. This mount is read-only.
# Benchmarks include numerous checks that run tests against config files in the host filesystem. There are also
Expand Down

0 comments on commit 6b1772a

Please sign in to comment.