Skip to content

Commit 9e77e2f

Browse files
committed
chore(helm): Add adjustments to Deployment
1 parent 7210ca8 commit 9e77e2f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

deploy/helm/secret-operator/templates/controller-deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
template:
1313
metadata:
1414
annotations:
15-
internal.stackable.tech/image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
15+
internal.stackable.tech/image: "{{ include "operator.image" . }}"
1616
{{- with .Values.controllerService.podAnnotations }}
1717
{{- toYaml . | nindent 8 }}
1818
{{- end }}
@@ -34,7 +34,7 @@ spec:
3434
- name: {{ include "operator.appname" . }}
3535
securityContext:
3636
{{- toYaml .Values.controllerService.securityContext | nindent 12 }}
37-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
37+
image: "{{ include "operator.image" . }}"
3838
imagePullPolicy: {{ .Values.image.pullPolicy }}
3939
resources:
4040
{{ .Values.controllerService.resources | toYaml | nindent 12 }}
@@ -71,6 +71,10 @@ spec:
7171
- name: OPERATOR_SERVICE_NAME
7272
value: {{ include "operator.fullname" . }}
7373

74+
# The image repository, like "oci.stackable.tech/sdp"
75+
- name: IMAGE_REPOSITORY
76+
value: {{ .Values.image.repository }}
77+
7478
# Operators need to know the node name they are running on, to e.g. discover the
7579
# Kubernetes domain name from the kubelet API.
7680
- name: KUBERNETES_NODE_NAME

0 commit comments

Comments
 (0)