From 62fc72bd7f6506c920a03b1eae929c3a618c87d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mihkel=20P=C3=A4rna?= Date: Mon, 26 Jan 2026 12:36:40 +0200 Subject: [PATCH] Add ability to pass 'dnsConfig' and 'securityContext' attributes in the 'operator' deployment resource. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mihkel Pärna Signed-off-by: Mihkel Pärna --- deployments/gpu-operator/templates/operator.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deployments/gpu-operator/templates/operator.yaml b/deployments/gpu-operator/templates/operator.yaml index b5dc545ad..aa5757c14 100644 --- a/deployments/gpu-operator/templates/operator.yaml +++ b/deployments/gpu-operator/templates/operator.yaml @@ -82,6 +82,15 @@ spec: ports: - name: metrics containerPort: 8080 + {{- with .Values.operator.dnsConfig}} + dnsPolicy: "None" + dnsConfig: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.operator.securityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: host-os-release hostPath: