Skip to content

Commit

Permalink
update-wallet-umbrella (#331)
Browse files Browse the repository at this point in the history
* umbrella

* chart version
  • Loading branch information
polcaparrosin2 authored Feb 5, 2025
1 parent 5786ad6 commit 4593911
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
13 changes: 10 additions & 3 deletions charts/wallet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ apiVersion: v2
name: wallet
description: Umbrella Helm chart for the Wallet
type: application
version: 1.3.1
version: 1.3.2
appVersion: "v0.0.5"

dependencies:
- name: wallet-api
condition: wallet-api.enabled
repository: https://in2workspace.github.io/helm-charts
version: 1.1.2
version: 1.1.3

- name: dome-wallet-ui
condition: dome-wallet-ui.enabled
Expand All @@ -28,7 +28,14 @@ dependencies:
version: 16.4.5

- name: postgresql
condition: wallet-postgresql.enabled
condition: "!wallet-api.db.externalService"
alias: wallet-postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 16.4.5

#External Database (Postgresql, MySQL,...)
- name: postgresql
condition: wallet-api.db.externalService
alias: wallet-external-database
repository: oci://registry-1.docker.io/bitnamicharts
version: 16.4.5
18 changes: 18 additions & 0 deletions charts/wallet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,24 @@ wallet-postgresql:
whenDeleted: Retain
initdb:
scripts:
create.sh: |
psql postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432 -c "CREATE DATABASE wallet;"
create-schema.sh: |
psql postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432/wallet -c "CREATE SCHEMA wallet;"
wallet-external-database:
# -- should the postgresql deployment be enabled
enabled: false
# -- overrides the generated name, provides stable service names - this should be avoided if multiple instances are available in the same namespace
fullnameOverride: wallet-external-database
# -- overrides the generated name, provides stable service names - this should be avoided if multiple instances are available in the same namespace
nameOverride: wallet-external-database
## auth configuration for the database
auth:
# -- username to be used
username: postgres
# -- should the default postgres user be enabled
enablePostgresUser: true
# -- password to be used
password: postgres

0 comments on commit 4593911

Please sign in to comment.