File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
template/deploy/helm/[[operator]]/templates Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,26 @@ spec:
43
43
- mountPath: /etc/stackable/{{ include "operator.appname" . }}/config-spec
44
44
name: config-spec
45
45
env:
46
+ # The following env vars are passed as clap (think CLI) arguments to the operator.
47
+ # They are picked up by clap using the structs defied in the operator.
48
+ # (which is turn pulls in https://github.com/stackabletech/operator-rs/blob/main/crates/stackable-operator/src/cli.rs)
49
+ # You can read there about the expected values and purposes.
50
+
51
+ # Sometimes products need to know the operator image, e.g. the opa-bundle-builder OPA
52
+ # sidecar uses the operator image.
46
53
- name: OPERATOR_IMAGE
47
54
# Tilt can use annotations as image paths, but not env variables
48
55
valueFrom:
49
56
fieldRef:
50
57
fieldPath: metadata.annotations['internal.stackable.tech/image']
58
+
59
+ # Operators need to know the node name they are running on, to e.g. discover the
60
+ # Kubernetes domain name from the kubelet API.
61
+ - name: KUBERNETES_NODE_NAME
62
+ valueFrom:
63
+ fieldRef:
64
+ fieldPath: spec.nodeName
65
+
51
66
{{- if .Values.kubernetesClusterDomain }}
52
67
- name: KUBERNETES_CLUSTER_DOMAIN
53
68
value: {{ .Values.kubernetesClusterDomain | quote }}
You can’t perform that action at this time.
0 commit comments