File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed
charts/data-space-connector Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : data-space-connector
33description : Umbrella Chart for the FIWARE Data Space Connector, combining all essential parts to be used by a participant.
44type : application
5- version : 8.2.20
5+ version : 8.2.21
66dependencies :
77 - name : postgresql
88 condition : postgresql.enabled
Original file line number Diff line number Diff line change @@ -16,29 +16,21 @@ data:
1616 {{- range $index, $credentialType := .Values.registration.credentialTypes }}
1717
1818 # credentials config service registration
19- {{- if eq $index 0 }}
2019 curl -v -X 'POST' \
2120 '{{ $registration.til }}/issuer' \
2221 -H 'accept: */*' \
2322 -H 'Content-Type: application/json' \
2423 -d "{
2524 \"did\": \"{{ $registration.did }}\",
26- \"credentials\": [{
27- \"credentialsType\": \"{{ $credentialType }}\"
28- }]
25+ \"credentials\": [
26+ {{- $last := sub (len $registration.credentialTypes) 1 -}}
27+ {{- range $index, $credentialType := $registration.credentialTypes }}
28+ {
29+ \"credentialsType\": \"{{ $credentialType }}\"
30+ }{{- if lt $index $last }},{{ end }}
31+ {{- end }}
32+ ]
2933 }"
30- {{- else }}
31- curl -v -X 'PUT' \
32- "{{ $registration.til }}/issuer/{{ $registration.did }}" \
33- -H 'accept: */*' \
34- -H 'Content-Type: application/json' \
35- -d "{
36- \"did\": \"{{ $registration.did }}\",
37- \"credentials\": [{
38- \"credentialsType\": \"{{ $credentialType }}\"
39- }]
40- }"
41- {{- end }}
4234 {{- end }}
4335
44- {{- end }}
36+ {{- end }}
You can’t perform that action at this time.
0 commit comments