diff --git a/charts/posthog/Chart.yaml b/charts/posthog/Chart.yaml index 2558a82b..3e8f7ea0 100644 --- a/charts/posthog/Chart.yaml +++ b/charts/posthog/Chart.yaml @@ -11,7 +11,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 30.35.0 +version: 30.36.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/posthog/templates/_helpers.tpl b/charts/posthog/templates/_helpers.tpl index 829ec50f..7e151589 100644 --- a/charts/posthog/templates/_helpers.tpl +++ b/charts/posthog/templates/_helpers.tpl @@ -49,6 +49,19 @@ Set the posthog image {{- end -}} {{- end -}} +{{/* +Set the posthog web image +*/}} +{{- define "posthog.web.image.fullPath" -}} +{{ if .Values.web.image.sha -}} +"{{ .Values.web.image.repository }}@{{ .Values.web.image.sha }}" +{{- else if .Values.web.image.tag -}} +"{{ .Values.web.image.repository }}:{{ .Values.web.image.tag }}" +{{- else -}} +"{{ include "posthog.image.fullPath" . }}" +{{- end -}} +{{- end -}} + {{/* Set zookeeper host */}} diff --git a/charts/posthog/templates/web-deployment.yaml b/charts/posthog/templates/web-deployment.yaml index 74939d5d..8018e7cc 100644 --- a/charts/posthog/templates/web-deployment.yaml +++ b/charts/posthog/templates/web-deployment.yaml @@ -81,9 +81,13 @@ spec: containers: - name: {{ .Chart.Name }}-web - image: {{ template "posthog.image.fullPath" . }} + image: {{ template "posthog.web.image.fullPath" . }} + {{ if .Values.web.image.command -}} command: - ./bin/docker-server + {{ else }} + {{- toYaml .Values.web.image.command | indent 8 }} + {{ end }} imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: {{ .Values.service.internalPort }}