|
17 | 17 | runAsGroup: 999
|
18 | 18 | initContainers:
|
19 | 19 | - name: bootstrap-values
|
20 |
| - image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} |
21 |
| - {{- with .Values.image.pullPolicy }} |
22 |
| - imagePullPolicy: {{ . }} |
23 |
| - {{- end }} |
| 20 | + image: otomi/core:{{ .Values.otomi.version | default .Chart.AppVersion }} |
| 21 | + imagePullPolicy: {{ ternary "IfNotPresent" "Always" (regexMatch "^v\\d" .Values.otomi.version) }} |
24 | 22 | resources:
|
25 | 23 | requests:
|
26 | 24 | memory: 200Mi
|
|
40 | 38 | - name: CI
|
41 | 39 | value: '1'
|
42 | 40 | - name: OTOMI_VERSION
|
43 |
| - value: {{ .Values.image.tag | default .Chart.AppVersion }} |
| 41 | + value: {{ .Values.otomi.version | default .Chart.AppVersion }} |
44 | 42 | - name: ENV_DIR
|
45 | 43 | value: /home/app/stack/env
|
46 | 44 | - name: OTOMI_VALUES_INPUT
|
|
54 | 52 | - name: values-secret
|
55 | 53 | mountPath: /secret
|
56 | 54 | - name: map-values
|
57 |
| - image: {{ .Values.tasksImage.repository }}:{{ .Values.tasksImage.tag | default "latest" }} |
58 |
| - {{- with .Values.image.pullPolicy }} |
59 |
| - imagePullPolicy: {{ . }} |
60 |
| - {{- end }} |
| 55 | + image: otomi/tasks:latest |
| 56 | + imagePullPolicy: {{ ternary "IfNotPresent" "Always" (regexMatch "^v\\d" .Values.otomi.version) }} |
61 | 57 | resources:
|
62 | 58 | requests:
|
63 | 59 | memory: 200Mi
|
|
84 | 80 | - name: values-secret
|
85 | 81 | mountPath: /secret
|
86 | 82 | - name: push-values
|
87 |
| - image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} |
88 |
| - {{- with .Values.image.pullPolicy }} |
89 |
| - imagePullPolicy: {{ . }} |
90 |
| - {{- end }} |
| 83 | + image: otomi/core:{{ .Values.otomi.version | default .Chart.AppVersion }} |
| 84 | + imagePullPolicy: {{ ternary "IfNotPresent" "Always" (regexMatch "^v\\d" .Values.otomi.version) }} |
91 | 85 | resources:
|
92 | 86 | requests:
|
93 | 87 | memory: 200Mi
|
@@ -120,10 +114,8 @@ spec:
|
120 | 114 | mountPath: /secret
|
121 | 115 | containers:
|
122 | 116 | - name: otomi-install
|
123 |
| - image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} |
124 |
| - {{- with .Values.image.pullPolicy }} |
125 |
| - imagePullPolicy: {{ . }} |
126 |
| - {{- end }} |
| 117 | + image: otomi/core:{{ .Values.otomi.version | default .Chart.AppVersion }} |
| 118 | + imagePullPolicy: {{ ternary "IfNotPresent" "Always" (regexMatch "^v\\d" .Values.otomi.version) }} |
127 | 119 | resources:
|
128 | 120 | limits:
|
129 | 121 | memory: 2Gi
|
|
0 commit comments