Skip to content

Commit 6cac2f3

Browse files
committed
datacite: add configuration variables
1 parent 632e2be commit 6cac2f3

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

charts/invenio/templates/_helpers.tpl

+12
Original file line numberDiff line numberDiff line change
@@ -459,5 +459,17 @@ Add datacite environmental variables
459459
secretKeyRef:
460460
name: {{ include "invenio.dataciteSecretName" . }}
461461
key: {{ .Values.invenio.datacite.secretKeys.passwordKey }}
462+
- name: INVENIO_DATACITE_PREFIX
463+
value: {{ required "Missing .Values.invenio.datacite.prefix" .Values.invenio.datacite.prefix | quote }}
464+
- name: INVENIO_DATACITE_TEST_MODE
465+
value: {{ required "Missing .Values.invenio.values.datacite.testMode" .Values.invenio.datacite.testMode | quote }}
466+
{{- with .Values.invenio.datacite.format }}
467+
- name: INVENIO_DATACITE_FORMAT
468+
value: {{ . }}
469+
{{- end}}
470+
{{- with .Values.invenio.datacite.dataCenterSymbol }}
471+
- name: INVENIO_DATACITE_DATACENTER_SYMBOL
472+
value: {{ . }}
473+
{{- end}}
462474
{{- end }}
463475
{{- end -}}

charts/invenio/values.yaml

+19-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ invenio:
8888
##
8989
secretKeys:
9090
dsnKey: "SENTRY_DSN"
91+
92+
## Invenio DataCite configuration
93+
## ref: https://inveniordm.docs.cern.ch/customize/dois
9194
datacite:
9295
## @param invenio.datacite.enabled Enable DataCite provider
9396
##
@@ -98,7 +101,7 @@ invenio:
98101
## @param invenio.datacite.password Datacite password
99102
##
100103
password: ""
101-
## @param invenio.datacite.existingSecret Existing secret name for datacite username and password
104+
## @param invenio.datacite.existingSecret Existing secret name for datacite username and password.
102105
##
103106
existingSecret: "datacite-secrets"
104107
## @param invenio.datacite.secretKeys.usernameKey Name of key in existing secret to use for username. Only used when `invenio.datacite.existingSecret` is set.
@@ -107,6 +110,21 @@ invenio:
107110
secretKeys:
108111
usernameKey: "DATACITE_USERNAME"
109112
passwordKey: "DATACITE_PASSWORD"
113+
## @param invenio.datacite.prefix DataCite DOI prefix, it will translate into DATACITE_PREFIX.
114+
##
115+
prefix: ""
116+
## @param invenio.datacite.testMode DataCite test mode enabled, it will trasnlate into DATACITE_TEST_MODE.
117+
## This has to be a string value, Invenio will evaluate this as a python expression and transform it into a boolean.
118+
## Example:
119+
## testMode: "False"
120+
##
121+
testMode: ""
122+
## @param invenio.datacite.format A string used for formatting the DOI, it will translate into DATACITE_FORMAT.
123+
##
124+
format: ""
125+
## @param invenio.datacite.dataCenterSymbol DataCite data center symbol, it will translate into DATACITE_DATACENTER_SYMBOL.
126+
##
127+
dataCenterSymbol: ""
110128
## @param invenio.datacite.existing_secret DEPRECATED: use invenio.datacite.existingSecret instead
111129
##
112130
existing_secret: false

0 commit comments

Comments
 (0)