Skip to content

Commit 7792a35

Browse files
committed
chore: Add KUBERNETES_NODE_NAME to controller container
1 parent 8b51c81 commit 7792a35

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

deploy/helm/secret-operator/templates/daemonset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ spec:
4848
value: {{ .Values.kubernetesClusterDomain | quote }}
4949
{{- end }}
5050
{{- include "telemetry.envVars" . | nindent 12 }}
51+
# Operators need to know the node name they are running on, to e.g. discover the
52+
# Kubernetes domain name from the kubelet API.
53+
- name: KUBERNETES_NODE_NAME
54+
valueFrom:
55+
fieldRef:
56+
fieldPath: spec.nodeName
5157
volumeMounts:
5258
- name: csi
5359
mountPath: /csi

0 commit comments

Comments
 (0)