File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
template/deploy/helm/[[operator]]/templates Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 56
56
fieldRef:
57
57
fieldPath: metadata.annotations['internal.stackable.tech/image']
58
58
59
+ # Namespace the operator Pod is running in, e.g. used to construct the conversion
60
+ # webhook endpoint.
61
+ - name: OPERATOR_NAMESPACE
62
+ valueFrom:
63
+ fieldRef:
64
+ fieldPath: metadata.namespace
65
+
66
+ # The name of the Kubernetes Service that point to the operator Pod, e.g. used to
67
+ # construct the conversion webhook endpoint.
68
+ - name: OPERATOR_SERVICE_NAME
69
+ value: {{ include "operator.fullname" . }}
70
+
59
71
# Operators need to know the node name they are running on, to e.g. discover the
60
72
# Kubernetes domain name from the kubelet API.
61
73
- name: KUBERNETES_NODE_NAME
Original file line number Diff line number Diff line change
1
+
2
+ ---
3
+ apiVersion : v1
4
+ kind : Service
5
+ metadata :
6
+ # Note(@sbernauer): We could also call the Service something like
7
+ # "product-operator-conversion-webhook". However, in the future we will have more webhooks, and
8
+ # it seems like an overkill to have a dedicated Service per webhook.
9
+ name : {{ include "operator.fullname" . }}
10
+ labels :
11
+ {{- include "operator.labels" . | nindent 4 }}
12
+ spec :
13
+ selector :
14
+ {{- include "operator.selectorLabels" . | nindent 6 }}
15
+ ports :
16
+ - name : conversion-webhook
17
+ protocol : TCP
18
+ port : 8443
19
+ targetPort : 8443
You can’t perform that action at this time.
0 commit comments