Skip to content

Commit 420116b

Browse files
committed
Add ability to pass 'dnsConfig' and 'securityContext' attributes in the 'operator' deployment resource.
Signed-off-by: Mihkel Pärna <[email protected]>
1 parent 1626bd1 commit 420116b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deployments/gpu-operator/templates/operator.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ spec:
8282
ports:
8383
- name: metrics
8484
containerPort: 8080
85+
{{- with .Values.operator.dnsConfig}}
86+
dnsPolicy: "None"
87+
dnsConfig:
88+
{{- toYaml . | nindent 8 }}
89+
{{- end }}
90+
{{- with .Values.operator.securityContext }}
91+
securityContext:
92+
{{- toYaml . | nindent 8 }}
93+
{{- end }}
8594
volumes:
8695
- name: host-os-release
8796
hostPath:

0 commit comments

Comments
 (0)