Skip to content

Commit 62fc72b

Browse files
committed
Add ability to pass 'dnsConfig' and 'securityContext' attributes in the 'operator' deployment resource.
Signed-off-by: Mihkel Pärna <mihkel.parna@wise.com> Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com>
1 parent 1626bd1 commit 62fc72b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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)