Unverified Commit de19d379 authored by Jeffrey Forman's avatar Jeffrey Forman Committed by GitHub

fix: helm - image tag and imagePullPolicy to correctly inherit from values (#2472)

* fix image tag and imagePullPolicy to correcy inherit from values, with sane defaults (ifNotPresent and latest) * fix default service ports for http and https in service.yaml Co-authored-by: 's avatarJeffrey Forman <jforman@gmail.com> ***NO_CI***
parent 5a9df24f
...@@ -25,8 +25,8 @@ spec: ...@@ -25,8 +25,8 @@ spec:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ default "latest" .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ default "IfNotPresent" .Values.image.imagePullPolicy }}
env: env:
- name: DB_TYPE - name: DB_TYPE
value: postgres value: postgres
......
...@@ -12,11 +12,11 @@ metadata: ...@@ -12,11 +12,11 @@ metadata:
spec: spec:
type: {{.Values.service.type}} type: {{.Values.service.type}}
ports: ports:
- port: {{.Values.service.port}} - port: {{ default "80" .Values.service.port}}
targetPort: http targetPort: http
protocol: TCP protocol: TCP
name: http name: http
- port: {{.Values.service.httpsPort}} - port: {{ default "443" .Values.service.httpsPort}}
targetPort: http targetPort: http
protocol: TCP protocol: TCP
name: https name: https
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment