Skip to content

Commit 270ae28

Browse files
committed
added variables for daps
1 parent 8d75fb9 commit 270ae28

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

deployment/helm/possible-x-edc/templates/configmap.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,12 @@ data:
3030
edc.receiver.http.endpoint={{ .Values.edc.receiver.http.endpoint }}/receiver/{{ .Values.edc.ids.id }}/callback
3131
edc.public.key.alias={{ .Values.edc.public.key.alias }}
3232
edc.dataplane.token.validation.endpoint={{ .Values.edc.dataplane.token.validation.endpoint }}{{ .Values.web.http.control.path }}/token
33+
edc.oauth.token.url={{ .Values.edc.oauth.token.url }}
34+
edc.oauth.certificate.alias={{ .Values.edc.oauth.certificate.alias }}
35+
edc.oauth.private.key.alias={{ .Values.edc.oauth.private.key.alias }}
36+
edc.oauth.client.id={{ .Values.edc.oauth.client.id }}
37+
edc.oauth.provider.jwks.url={{ .Values.edc.oauth.provider.jwks.url }}
38+
edc.oauth.provider.audience={{ .Values.edc.oauth.provider.audience }}
39+
edc.iam.token.scope={{ .Values.edc.iam.token.scope }}
40+
edc.keystore={{ .Values.edc.keystore.path }}
41+
edc.keystore.password={{ .Values.edc.keystore.password }}

deployment/helm/possible-x-edc/templates/deployment.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,24 @@ spec:
2727
serviceAccountName: {{ include "possible-x-edc.serviceAccountName" . }}
2828
securityContext:
2929
{{- toYaml .Values.podSecurityContext | nindent 8 }}
30+
initContainers:
31+
- name: daps-init-container
32+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
33+
command: ["/bin/sh", "-c"]
34+
args:
35+
- |
36+
echo "path: $DAPS_KEY_PATH"
37+
echo "store: $DAPS_KEY_STORE"
38+
if ! [ -d $(dirname $DAPS_KEY_PATH) ] ; then mkdir -p $(dirname $DAPS_KEY_PATH) ; else echo "exists!"; fi
39+
echo "$DAPS_KEY_STORE" | base64 -d > $DAPS_KEY_PATH
40+
volumeMounts:
41+
- name: keystore
42+
mountPath: /resources/keystore
43+
env:
44+
- name: DAPS_KEY_PATH
45+
value: {{ .Values.edc.keystore.path }}
46+
- name: DAPS_KEY_STORE
47+
value: {{ .Values.edc.keystore.content }}
3048
containers:
3149
- name: {{ .Chart.Name }}
3250
securityContext:
@@ -72,6 +90,8 @@ spec:
7290
- name: config
7391
mountPath: /resources/config.properties
7492
subPath: config.properties
93+
- name: keystore
94+
mountPath: resources/keystore
7595
{{- with .Values.nodeSelector }}
7696
nodeSelector:
7797
{{- toYaml . | nindent 8 }}
@@ -88,3 +108,5 @@ spec:
88108
- name: config
89109
configMap:
90110
name: {{ include "possible-x-edc.fullname" . }}-config
111+
- name: keystore
112+
emptyDir: {}

0 commit comments

Comments
 (0)