Skip to content

Commit

Permalink
Merge pull request #13 from nfdi4health/feat/dv-admin-api-key
Browse files Browse the repository at this point in the history
feat(k8s.csh): add Dataverse admin API key to config values
  • Loading branch information
vera authored Mar 19, 2024
2 parents 5e03994 + cc8d891 commit 59775ff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/central-search-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.2
version: 0.3.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
15 changes: 15 additions & 0 deletions k8s/central-search-hub/templates/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ spec:
value: {{ .Values.api.dataverse_oidc_id }}
- name: BACKEND_MODE
value: {{ .Values.api.backend_mode }}
- name: DATAVERSE_ADMIN_API_KEY
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-backend-dv-admin-api-key-secret
key: token
- name: API_TOKEN
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -69,3 +74,13 @@ metadata:
type: Opaque
data:
token: {{ default "" .Values.api.default_token | b64enc | quote }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-backend-dv-admin-api-key-secret
annotations:
"helm.sh/resource-policy": keep
type: Opaque
data:
token: {{ default "" .Values.api.dataverse_admin_api_key | b64enc | quote }}
1 change: 1 addition & 0 deletions k8s/central-search-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ api:
backend_mode:
dataverse_oidc_id:
dataverse_host:
dataverse_admin_api_key:
ingress:
dns:
enableSSL: false
Expand Down

0 comments on commit 59775ff

Please sign in to comment.