Skip to content

Commit

Permalink
Put linter annotations back
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasovskib committed Aug 21, 2024
1 parent 0f15c7c commit 47abc21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/gpu-metrics-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "gpu-metrics-exporter.labels" . | nindent 4 }}
{{- if .Values.dcgmExporter.enabled }}
annotations:
ignore-check.kube-linter.io/privileged-container: "This daemon set needs to run DCGM Exporter as privileged to access the GPU metrics."
ignore-check.kube-linter.io/run-as-non-root: "This daemon set needs to run DCGM Exporter as root to access the GPU metrics."
ignore-check.kube-linter.io/privilege-escalation-container: "This daemon set needs escalate privileges for DCGM Exporter."
ignore-check.kube-linter.io/no-read-only-root-fs: "This daemon set needs to run DCGM Exporter with read-only root filesystem."
ignore-check.kube-linter.io/drop-net-raw-capability: "This daemon set needs to run DCGM Exporter with SYS_ADMIN."
{{- end }}
spec:
updateStrategy:
type: RollingUpdate
Expand Down

0 comments on commit 47abc21

Please sign in to comment.