argo: add support for individual image tags.

This allows the use of digests for the controller/ui/executor.
This commit is contained in:
Tom Powell 2019-07-01 11:18:30 -07:00
parent 62319a934f
commit b77273cbb8
3 changed files with 14 additions and 3 deletions

View file

@ -20,7 +20,7 @@ spec:
serviceAccountName: {{ .Values.ui.serviceAccount | quote }} serviceAccountName: {{ .Values.ui.serviceAccount | quote }}
containers: containers:
- name: ui - name: ui
image: "{{ .Values.images.namespace }}/{{ .Values.images.ui }}:{{ .Values.images.tag }}" image: "{{ .Values.images.namespace }}/{{ .Values.images.ui }}:{{ default .Values.images.tag .Values.ui.image.tag }}"
imagePullPolicy: {{ .Values.images.pullPolicy }} imagePullPolicy: {{ .Values.images.pullPolicy }}
env: env:
{{- if .Values.ui.forceNamespaceIsolation }} {{- if .Values.ui.forceNamespaceIsolation }}

View file

@ -20,14 +20,14 @@ spec:
serviceAccountName: {{ .Values.controller.serviceAccount | quote }} serviceAccountName: {{ .Values.controller.serviceAccount | quote }}
containers: containers:
- name: controller - name: controller
image: "{{ .Values.images.namespace }}/{{ .Values.images.controller }}:{{ .Values.images.tag }}" image: "{{ .Values.images.namespace }}/{{ .Values.images.controller }}:{{ default .Values.images.tag .Values.controller.image.tag }}"
imagePullPolicy: {{ .Values.images.pullPolicy }} imagePullPolicy: {{ .Values.images.pullPolicy }}
command: [ "workflow-controller" ] command: [ "workflow-controller" ]
args: args:
- "--configmap" - "--configmap"
- "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap" - "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap"
- "--executor-image" - "--executor-image"
- "{{ .Values.images.namespace }}/{{ .Values.images.executor }}:{{ .Values.images.tag }}" - "{{ .Values.images.namespace }}/{{ .Values.images.executor }}:{{ default .Values.images.tag .Values.executor.image.tag }}"
- "--loglevel" - "--loglevel"
- "{{ .Values.controller.logging.level }}" - "{{ .Values.controller.logging.level }}"
- "--gloglevel" - "--gloglevel"

View file

@ -16,6 +16,9 @@ init:
createAggregateRoles: true createAggregateRoles: true
controller: controller:
image:
# Overrides .images.tag if defined.
tag: ""
# podAnnotations is an optional map of annotations to be applied to the controller Pods # podAnnotations is an optional map of annotations to be applied to the controller Pods
podAnnotations: {} podAnnotations: {}
metricsConfig: metricsConfig:
@ -39,10 +42,18 @@ controller:
level: info level: info
globallevel: "0" globallevel: "0"
executor:
image:
# Overrides .images.tag if defined.
tag: ""
ui: ui:
enabled: true enabled: true
# only show workflows where UI installed # only show workflows where UI installed
forceNamespaceIsolation: false forceNamespaceIsolation: false
image:
# Overrides .images.tag if defined.
tag: ""
# optional map of annotations to be applied to the ui Pods # optional map of annotations to be applied to the ui Pods
podAnnotations: {} podAnnotations: {}
name: ui name: ui