Skip to content

Commit

Permalink
Creating app database user for API server (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaychenko-sergei authored Sep 24, 2024
1 parent 59abca1 commit 0515347
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/kamu-api-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kamu-api-server
description: API server component of the Kamu Compute Node
type: application
version: 0.40.0
appVersion: "0.40.0"
version: 0.40.1
appVersion: "0.40.1"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
sources:
Expand Down
5 changes: 3 additions & 2 deletions charts/kamu-api-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ spec:
- "/bin/sh"
- "-c"
- |
source /scripts/fetch-db-secret.sh {{ .Values.imageMigrations.databaseSecretName }} $AWS_REGION {{ .Values.imageMigrations.databaseProvider }} {{ .Values.imageMigrations.databaseHost }} {{ .Values.imageMigrations.databasePort }} {{ .Values.imageMigrations.databaseName }} &&
/scripts/run-db-migrations.sh {{ .Values.imageMigrations.migrationsPath }}
source /scripts/fetch-db-secrets.sh {{ .Values.imageMigrations.databaseMasterSecretName }} {{ .Values.imageMigrations.databaseAppUserSecretName }} $AWS_REGION {{ .Values.imageMigrations.databaseProvider }} {{ .Values.imageMigrations.databaseHost }} {{ .Values.imageMigrations.databasePort }} {{ .Values.imageMigrations.databaseName }} &&
/scripts/run-db-migrations.sh {{ .Values.imageMigrations.migrationsPath }} &&
/scripts/create-db-app-user.sh
env:
- name: RUST_BACKTRACE
value: "1"
Expand Down
3 changes: 2 additions & 1 deletion charts/kamu-api-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ imageMigrations:
pullPolicy: IfNotPresent
tag: ""
migrationsPath: ""
databaseSecretName: ""
databaseMasterSecretName: ""
databaseAppUserSecretName: ""
databaseProvider: postgresql
databaseHost: ""
databasePort: 5432
Expand Down
4 changes: 2 additions & 2 deletions charts/kamu-oracle-provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kamu-oracle-provider
description: Oracle provider that uses Kamu Node to supply data to blockchain smart contracts
type: application
version: 0.40.0
appVersion: "0.40.0"
version: 0.40.1
appVersion: "0.40.1"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
sources:
Expand Down

0 comments on commit 0515347

Please sign in to comment.