Be able to define extra configuration in argo (#100)

This commit is contained in:
Sam Wyma 2019-09-23 16:49:13 +01:00 committed by Alex Collins
parent 10ea33f7d1
commit d135aa72dd
8 changed files with 96 additions and 3 deletions

View file

@ -8,6 +8,7 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.ui.replicas }}
selector:
matchLabels:
app: {{ .Release.Name }}-{{ .Values.ui.name}}
@ -17,6 +18,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.ui.name}}
release: {{ .Release.Name }}
{{- if .Values.ui.podLabels }}
{{- toYaml .Values.ui.podLabels | nindent 8 }}
{{- end }}
{{- if .Values.ui.podAnnotations }}
annotations:
{{ toYaml .Values.ui.podAnnotations | indent 8}}{{- end }}
@ -26,6 +30,12 @@ spec:
- name: ui
image: "{{ .Values.images.namespace }}/{{ .Values.images.ui }}:{{ default .Values.images.tag .Values.ui.image.tag }}"
imagePullPolicy: {{ .Values.images.pullPolicy }}
{{- if .Values.ui.podPortName }}
ports:
- name: {{ .Values.ui.podPortName }}
containerPort: 8001
protocol: TCP
{{- end }}
env:
{{- if .Values.ui.forceNamespaceIsolation }}
- name: FORCE_NAMESPACE_ISOLATION