File tree 8 files changed +98
-13
lines changed
8 files changed +98
-13
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : invenio
3
- appVersion : v12.0.0-beta.1.3
3
+ appVersion : v12.0.10
4
4
description : Turn-key research data management platform.
5
5
home : https://inveniosoftware.org/
6
6
icon : https://inveniosoftware.org/static/img/logo-invenio-white.svg
Original file line number Diff line number Diff line change @@ -4,25 +4,25 @@ Your release is named {{ .Release.Name }}.
4
4
5
5
{{- if .Values.invenio.extra_config}}
6
6
7
- DEPRECATION WARNING:
7
+ DEPRECATION WARNING:
8
8
`invenio.extra_config` has been renamed to `invenio.extraConfig` and will be
9
9
removed in a future release.
10
10
11
11
{{- end }}
12
12
13
13
{{- if .Values.invenio.sentry.existing_secret }}
14
14
15
- DEPRECATION WARNING:
16
- `invenio.sentry.existing_secret` has been renamed to `invenio.sentry.existingSecret`
15
+ DEPRECATION WARNING:
16
+ `invenio.sentry.existing_secret` has been renamed to `invenio.sentry.existingSecret`
17
17
and its type has changed from boolean to string.
18
18
This key will be removed in a future release.
19
19
20
20
{{- end }}
21
21
22
22
{{- if .Values.invenio.sentry.secret_name }}
23
23
24
- DEPRECATION WARNING:
25
- `invenio.sentry.secret_name` has been removed in favor of
24
+ DEPRECATION WARNING:
25
+ `invenio.sentry.secret_name` has been removed in favor of
26
26
`invenio.sentry.existingSecret` will be removed in a future release.
27
27
28
28
{{- end }}
@@ -44,3 +44,19 @@ DEPRECATION WARNING:
44
44
`invenio.existingSecret` and it will be removed in a future release.
45
45
46
46
{{- end }}
47
+
48
+ {{- if or .Values.web.image .Values.worker.image }}
49
+
50
+ DEPRECATION WARNING:
51
+ `<service>.image` has been removed in favor of `image` and it will be
52
+ removed in a future release.
53
+
54
+ {{- end }}
55
+
56
+ {{- if or .Values.web.imagePullSecret .Values.worker.imagePullSecret }}
57
+
58
+ DEPRECATION WARNING:
59
+ `<service>.imagePullSecret` has been removed in favor of
60
+ `image.pullSecrets` and it will be removed in a future release.
61
+
62
+ {{- end }}
Original file line number Diff line number Diff line change @@ -50,6 +50,27 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
50
50
app.kubernetes.io/managed-by: { { .Release.Service } }
51
51
{ {- end } }
52
52
53
+ { {/*
54
+ Return the proper Invenio image name
55
+ */} }
56
+ { {- define " invenio.image" -} }
57
+ { {- $registryName := .Values.image.registry -} }
58
+ { {- $repositoryName := .Values.image.repository -} }
59
+ { {- $separator := " :" -} }
60
+ { {- $termination := .Values.image.tag | default .Chart.AppVersion | toString -} }
61
+
62
+ { {- if .Values.image.digest } }
63
+ { {- $separator = " @" -} }
64
+ { {- $termination = .Values.image.digest | toString -} }
65
+ { {- end -} }
66
+
67
+ { {- if $registryName } }
68
+ { {- printf " %s/%s%s%s" $registryName $repositoryName $separator $termination -} }
69
+ { {- else -} }
70
+ { {- printf " %s%s%s" $repositoryName $separator $termination -} }
71
+ { {- end -} }
72
+ { {- end -} }
73
+
53
74
########################### Invenio hostname ###########################
54
75
{ {/*
55
76
This template renders the hostname for Invenio.
@@ -299,7 +320,7 @@ Get the sentry secret name
299
320
{{- if .Values.invenio.sentry.existingSecret -}}
300
321
{{- print (tpl .Values.invenio.sentry.existingSecret .) -}}
301
322
{{- else if .Values.invenio.sentry.secret_name -}}
302
- {{- print .Values.invenio.sentry.secret_name -}}
323
+ {{- print .Values.invenio.sentry.secret_name -}}
303
324
{{- else -}}
304
325
{{- printf "%s-%s" (include "invenio.fullname" .) "sentry" -}}
305
326
{{- end -}}
Original file line number Diff line number Diff line change 24
24
spec :
25
25
containers :
26
26
- name : install-init
27
- image : {{ required "Missing .Values.web.image" .Values.web.image }}
27
+ image : {{ default .Values.web.image (include "invenio.image" .) }}
28
+ imagePullPolicy : {{ .Values.image.pullPolicy | quote }}
28
29
command : [
29
30
" /bin/bash" ,
30
31
" -c" ,
33
34
envFrom :
34
35
- configMapRef :
35
36
name : {{ include "invenio.fullname" . }}-config
36
- - secretRef :
37
+ - secretRef :
37
38
name : {{ include "invenio.secretName" . }}
38
39
env :
39
40
- name : TZ
65
66
imagePullSecrets :
66
67
- name : {{ .Values.web.imagePullSecret }}
67
68
{{- end }}
69
+ {{- with .Values.image.pullSecrets }}
70
+ imagePullSecrets :
71
+ {{- toYaml . | nindent 8 }}
72
+ {{- end }}
68
73
{{- end }}
Original file line number Diff line number Diff line change 27
27
{{- end }}
28
28
containers :
29
29
- name : web
30
- image : {{ required "Missing .Values.web.image" .Values.web.image }}
30
+ image : {{ default .Values.web.image (include "invenio.image" .) }}
31
+ imagePullPolicy : {{ .Values.image.pullPolicy | quote }}
31
32
command : [
32
33
" /bin/bash" ,
33
34
" -c" ,
@@ -215,7 +216,8 @@ spec:
215
216
initContainers :
216
217
# copy assets from uwsgi to nginx
217
218
- name : copy-web-assets
218
- image : {{ required "Missing .Values.web.image" .Values.web.image }}
219
+ image : {{ default .Values.web.image (include "invenio.image" .) }}
220
+ imagePullPolicy : {{ .Values.image.pullPolicy | quote }}
219
221
command : [
220
222
" /bin/bash" ,
221
223
" -c" ,
@@ -294,3 +296,7 @@ spec:
294
296
imagePullSecrets :
295
297
- name : {{ .Values.web.imagePullSecret }}
296
298
{{- end }}
299
+ {{- with .Values.image.pullSecrets }}
300
+ imagePullSecrets :
301
+ {{- toYaml . | nindent 8 }}
302
+ {{- end }}
Original file line number Diff line number Diff line change 26
26
{{- end }}
27
27
containers :
28
28
- name : worker-beat
29
- image : {{ required "Missing .Values.worker.image" .Values.worker.image }}
29
+ image : {{ default .Values.worker.image (include "invenio.image" .) }}
30
+ imagePullPolicy : {{ .Values.image.pullPolicy | quote }}
30
31
command : [
31
32
" /bin/bash" ,
32
33
" -c" ,
@@ -132,5 +133,9 @@ spec:
132
133
imagePullSecrets :
133
134
- name : {{ .Values.worker.imagePullSecret }}
134
135
{{- end }}
136
+ {{- with .Values.image.pullSecrets }}
137
+ imagePullSecrets :
138
+ {{- toYaml . | nindent 8 }}
139
+ {{- end }}
135
140
strategy :
136
141
type : Recreate # For data safety, beat must never have more than 1 replica!
Original file line number Diff line number Diff line change 26
26
{{- end }}
27
27
containers :
28
28
- name : worker
29
- image : {{ required "Missing .Values.worker.image" .Values.worker.image }}
29
+ image : {{ default .Values.worker.image (include "invenio.image" .) }}
30
+ imagePullPolicy : {{ .Values.image.pullPolicy | quote }}
30
31
command : [
31
32
" /bin/bash" ,
32
33
" -c" ,
@@ -170,3 +171,7 @@ spec:
170
171
imagePullSecrets :
171
172
- name : {{ .Values.worker.imagePullSecret }}
172
173
{{- end }}
174
+ {{- with .Values.image.pullSecrets }}
175
+ imagePullSecrets :
176
+ {{- toYaml . | nindent 8 }}
177
+ {{- end }}
Original file line number Diff line number Diff line change @@ -10,6 +10,33 @@ nameOverride: ""
10
10
# #
11
11
fullnameOverride : " "
12
12
13
+ # # Invenio image version
14
+ # # ref: https://github.com/inveniosoftware/demo-inveniordm/pkgs/container/demo-inveniordm%2Fdemo-inveniordm
15
+ # # @param image.registry Invenio image registry
16
+ # # @param image.repository Invenio image repository
17
+ # # @skip image.tag Invenio image tag (immutable tags are recommended)
18
+ # # @param image.digest Invenio image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
19
+ # # @param image.pullPolicy Invenio image pull policy
20
+ # # @param image.pullSecrets Invenio image pull secrets
21
+ image :
22
+ registry : ghrc.io
23
+ repository : inveniosoftware/demo-inveniordm
24
+ tag : demo-inveniordm:12.0.10
25
+ digest : " "
26
+ # # Specify a imagePullPolicy
27
+ # # Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
28
+ # # ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
29
+ # #
30
+ pullPolicy : IfNotPresent
31
+ # # Optionally specify an array of imagePullSecrets.
32
+ # # Secrets must be manually created in the namespace.
33
+ # # ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
34
+ # # e.g:
35
+ # # pullSecrets:
36
+ # # - myRegistryKeySecretName
37
+ # #
38
+ pullSecrets : []
39
+
13
40
ingress :
14
41
annotations : {}
15
42
enabled : false
You can’t perform that action at this time.
0 commit comments