Skip to content

Commit

Permalink
helm: add authority wallet name setting
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Pinsel <dominik.pinsel@mercedes-benz.com>
  • Loading branch information
DominikPinsel committed Aug 17, 2023
1 parent fa77d59 commit 78de343
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions charts/managed-identity-wallet/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ spec:
key: {{ default .Values.miw.database.encryptionKey.secretKey "encryption-key" }}
- name: AUTHORITY_WALLET_BPN
value: {{ tpl .Values.miw.authorityWallet.bpn . }}
- name: AUTHORITY_WALLET_NAME
value: {{ default (tpl .Values.miw.authorityWallet.name . ) "" }}
- name: AUTHORITY_WALLET_DID
value: {{ printf "did:web:%s:%s" ( tpl .Values.miw.host . | replace ":" "%3A" | replace "/" ":") .Values.miw.authorityWallet.bpn }}
- name: ENFORCE_HTTPS_IN_DID_RESOLUTION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ tests:
path: spec.template.spec.containers[0].env
- lengthEqual:
path: spec.template.spec.containers[0].env
count: 19 # One hard-wired, four because Values.postgresql.internal.enabled == true and five from values.yaml "secrets" and "envs"
count: 20 # One hard-wired, four because Values.postgresql.internal.enabled == true and five from values.yaml "secrets" and "envs"
- equal:
path: spec.template.spec.containers[0].env
value:
Expand All @@ -52,9 +52,11 @@ tests:
valueFrom:
secretKeyRef:
key: encryption-key
name: RELEASE-NAME-managed-identity-wallet
name: RELEASE-NAME-managed-identity-wallet-encryption-key
- name: AUTHORITY_WALLET_BPN
value: BPNL000000000000
- name: AUTHORITY_WALLET_NAME
value: null
- name: AUTHORITY_WALLET_DID
value: did:web:RELEASE-NAME-managed-identity-wallet%3A8080:BPNL000000000000
- name: ENFORCE_HTTPS_IN_DID_RESOLUTION
Expand Down Expand Up @@ -86,4 +88,9 @@ tests:
value: "8080"
- name: VC_EXPIRY_DATE
value: 31-12-2023
- name: encryption-key
valueFrom:
secretKeyRef:
key: encryption-key
name: RELEASE-NAME-managed-identity-wallet

Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ tests:
path: spec.template.spec.containers[0].env
- lengthEqual:
path: spec.template.spec.containers[0].env
count: 19 # One hard-wired, four because Values.postgresql.internal.enabled == true and five from values.yaml "secrets" and "envs"
count: 20 # One hard-wired, four because Values.postgresql.internal.enabled == true and five from values.yaml "secrets" and "envs"
- equal:
path: spec.template.spec.containers[0].env
value:
Expand All @@ -114,6 +114,8 @@ tests:
name: RELEASE-NAME-managed-identity-wallet-encryption-key
- name: AUTHORITY_WALLET_BPN
value: BPNL000000000000
- name: AUTHORITY_WALLET_NAME
value: null
- name: AUTHORITY_WALLET_DID
value: did:web:RELEASE-NAME-managed-identity-wallet%3A8080:BPNL000000000000
- name: ENFORCE_HTTPS_IN_DID_RESOLUTION
Expand Down
2 changes: 2 additions & 0 deletions charts/managed-identity-wallet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ miw:
# -- Verifiable Credential expiry date. Format 'dd-MM-yyyy'. If empty it is set to 31-12-<current year>
vcExpiryDate: ""
authorityWallet:
# -- Authority Wallet Name
name: ""
# -- Authority Wallet BPNL
bpn: "BPNL000000000000"
logging:
Expand Down

0 comments on commit 78de343

Please sign in to comment.