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 b5ffbb1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 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,13 @@ 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 to access the GPU metrics."
ignore-check.kube-linter.io/no-read-only-root-fs: "This daemon set needs to run DCGM Exporter with read-only root filesystem to access the GPU utilization metrics."
{{- end }}
spec:
updateStrategy:
type: RollingUpdate
Expand Down

0 comments on commit b5ffbb1

Please sign in to comment.