File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
template/deploy/helm/[[operator]]/templates Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -44,19 +44,25 @@ spec:
44
44
name: config-spec
45
45
env:
46
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
48
- # https://github.com/stackabletech/operator-rs/blob/main/crates/stackable-operator/src/cli.rs
49
- # (currently "ProductOperatorRun").
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)
50
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.
51
53
- name: OPERATOR_IMAGE
52
54
# Tilt can use annotations as image paths, but not env variables
53
55
valueFrom:
54
56
fieldRef:
55
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.
56
61
- name: KUBERNETES_NODE_NAME
57
62
valueFrom:
58
63
fieldRef:
59
64
fieldPath: spec.nodeName
65
+
60
66
{{- if .Values.kubernetesClusterDomain }}
61
67
- name: KUBERNETES_CLUSTER_DOMAIN
62
68
value: {{ .Values.kubernetesClusterDomain | quote }}
You can’t perform that action at this time.
0 commit comments