Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Allow configure of schema ids via helm (#328)
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Bernhardt <[email protected]>
  • Loading branch information
frank-bee authored Feb 23, 2021
1 parent 3b20b02 commit 9134c9b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/bpa/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: bpa
description: The Business Partner Agent allows to manage and exchange master data between organizations.
type: application

version: 0.1.0-alpha2.11
appVersion: 0.1.0-alpha2.11
version: 0.1.0-alpha2.12
appVersion: 0.1.0-alpha2.12

home: "https://github.com/hyperledger-labs/business-partner-agent/tree/master/charts/bpa"
sources: ["https://github.com/hyperledger-labs/business-partner-agent/tree/master/charts/bpa"]
Expand Down
4 changes: 3 additions & 1 deletion charts/bpa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The Business Partner Agent allows to manage and exchange master data between organizations.

![Version: 0.1.0-alpha2.11](https://img.shields.io/badge/Version-0.1.0--alpha2.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0-alpha2.11](https://img.shields.io/badge/AppVersion-0.1.0--alpha2.11-informational?style=flat-square)
![Version: 0.1.0-alpha2.12](https://img.shields.io/badge/Version-0.1.0--alpha2.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0-alpha2.12](https://img.shields.io/badge/AppVersion-0.1.0--alpha2.12-informational?style=flat-square)

This chart will install a business partner agent (bpa-core & bpa-acapy) and Postgres.

Expand Down Expand Up @@ -194,6 +194,8 @@ Note: Deleting the PVC's will delete postgresql data as well. Please be cautious
| bpa.podSecurityContext | object | `{}` | |
| bpa.resolverURL | string | `"https://resolver.stage.economyofthings.io"` | Uni Resolver URL |
| bpa.resources | object | `{}` | |
| bpa.schemas.bank-account.id | string | `"M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0"` | |
| bpa.schemas.commercial-register.id | string | `"3gLVpb3i5jzvZqWYyesSB3:2:commercialregister:1.2"` | |
| bpa.securityContext | object | `{}` | |
| bpa.securityEnabled | bool | `true` | enable security (username and password) |
| bpa.service.port | int | `80` | |
Expand Down
2 changes: 2 additions & 0 deletions charts/bpa/templates/bpa_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ spec:
-Dbpa.pg.username={{ .Values.postgresql.postgresqlUsername }}
-Dbpa.pg.password=$(POSTGRES_PASSWORD)
-Dbpa.host={{ (index .Values.bpa.ingress.hosts 0).host }}
-Dbpa.schemas.bank-account.id={{ .Values.bpa.schemas.bank-account.id }}
-Dbpa.schemas.commercial-register.id={{ .Values.bpa.schemas.commercial-register.id}}
resources:
{{- toYaml .Values.bpa.resources | nindent 12 }}
{{- with .Values.bpa.nodeSelector }}
Expand Down
7 changes: 7 additions & 0 deletions charts/bpa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ bpa:
# -- The Agent Name as it should be displayed in the UI
agentName: "Business Partner Agent"

# schemas to be configured initially (further schemas can be configured by the user in the frontend)
schemas:
commercial-register:
id: "3gLVpb3i5jzvZqWYyesSB3:2:commercialregister:1.2"
bank-account:
id: "M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0"

imagePullSecrets: []

podAnnotations: {}
Expand Down

0 comments on commit 9134c9b

Please sign in to comment.