Skip to content

datacite: add configuration variables #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions charts/invenio/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -459,5 +459,17 @@ Add datacite environmental variables
secretKeyRef:
name: {{ include "invenio.dataciteSecretName" . }}
key: {{ .Values.invenio.datacite.secretKeys.passwordKey }}
- name: INVENIO_DATACITE_PREFIX
value: {{ required "Missing .Values.invenio.datacite.prefix" .Values.invenio.datacite.prefix | quote }}
- name: INVENIO_DATACITE_TEST_MODE
value: {{ required "Missing .Values.invenio.values.datacite.testMode" .Values.invenio.datacite.testMode | quote }}
{{- with .Values.invenio.datacite.format }}
- name: INVENIO_DATACITE_FORMAT
value: {{ . }}
{{- end}}
{{- with .Values.invenio.datacite.dataCenterSymbol }}
- name: INVENIO_DATACITE_DATACENTER_SYMBOL
value: {{ . }}
{{- end}}
{{- end }}
{{- end -}}
20 changes: 19 additions & 1 deletion charts/invenio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ invenio:
##
secretKeys:
dsnKey: "SENTRY_DSN"

## Invenio DataCite configuration
## ref: https://inveniordm.docs.cern.ch/customize/dois
datacite:
## @param invenio.datacite.enabled Enable DataCite provider
##
Expand All @@ -98,7 +101,7 @@ invenio:
## @param invenio.datacite.password Datacite password
##
password: ""
## @param invenio.datacite.existingSecret Existing secret name for datacite username and password
## @param invenio.datacite.existingSecret Existing secret name for datacite username and password.
##
existingSecret: "datacite-secrets"
## @param invenio.datacite.secretKeys.usernameKey Name of key in existing secret to use for username. Only used when `invenio.datacite.existingSecret` is set.
Expand All @@ -107,6 +110,21 @@ invenio:
secretKeys:
usernameKey: "DATACITE_USERNAME"
passwordKey: "DATACITE_PASSWORD"
## @param invenio.datacite.prefix DataCite DOI prefix, it will translate into DATACITE_PREFIX.
##
prefix: ""
## @param invenio.datacite.testMode DataCite test mode enabled, it will trasnlate into DATACITE_TEST_MODE.
## This has to be a string value, Invenio will evaluate this as a python expression and transform it into a boolean.
## Example:
## testMode: "False"
##
testMode: ""
## @param invenio.datacite.format A string used for formatting the DOI, it will translate into DATACITE_FORMAT.
##
format: ""
## @param invenio.datacite.dataCenterSymbol DataCite data center symbol, it will translate into DATACITE_DATACENTER_SYMBOL.
##
dataCenterSymbol: ""
## @param invenio.datacite.existing_secret DEPRECATED: use invenio.datacite.existingSecret instead
##
existing_secret: false
Expand Down