Skip to content

Commit

Permalink
fix: merge workflow values file. (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Oct 27, 2023
1 parent c8b16d9 commit 64c820f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
1 change: 1 addition & 0 deletions charts/quickstart-openshift/values-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ bitnami-pg:
tag: 15.4.0
auth:
existingSecret: '{{ .Release.Name }}'
username: 'quickstart'
database: quickstart
shmVolume:
enabled: false
Expand Down
45 changes: 25 additions & 20 deletions charts/quickstart-openshift/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ global:
repository: ~ # the repository where the images are stored.
registry: ghcr.io # the registry where the images are stored. override during runtime for other registry at global level or individual level.
secrets:
enabled: true
databasePassword: ~
databaseUser: ~
databaseName: ~
annotation:
helm.sh/policy: "keep"
domain: "apps.silver.devops.gov.bc.ca" # it is required, apps.silver.devops.gov.bc.ca for silver cluster
openshiftImageRegistry: "image-registry.openshift-image-registry.svc:5000"

databaseAlias: bitnami-pg # this is the alias for bitnami postgres, change it based on db type(crunchy,patroni...) and alias used in the chart.
backend:
enabled: true
deployment: # can be either a statefulSet or a deployment not both
Expand All @@ -21,18 +25,17 @@ backend:
image: backend # the exact component name, be it backend, api-1 etc...
tag: prod # the tag of the image, it can be latest, 1.0.0 etc..., or the sha256 hash
env:
fromLocalSecret:
fromGlobalSecret:
- name: POSTGRES_PASSWORD
key: password
secretName: '{{ .Release.Name }}-bitnami-pg' # this is interpolated, it will be replaced with the actual value, pg is the alias for crunchy.
- name: POSTGRES_USER
key: databaseUser
- name: POSTGRES_DATABASE
key: databaseName

fromValues:
- name: POSTGRES_HOST
value: '{{ .Release.Name }}-bitnami-pg' # this is interpolated, it will be replaced with the actual value, pg is the alias for crunchy.
- name: POSTGRES_USER
value: quickstart
- name: POSTGRES_DATABASE
value: quickstart
value: '{{ .Release.Name }}-{{.Values.global.databaseAlias}}'

ports:
- name: http
Expand Down Expand Up @@ -72,19 +75,18 @@ backend:
image: migrations
tag: prod
env:
fromLocalSecret:
fromGlobalSecret:
- name: FLYWAY_PASSWORD
key: password
secretName: '{{ .Release.Name }}-bitnami-pg' # this is interpolated, it will be replaced with the actual value, pg is the alias for crunchy.
fromValues:
key: databasePassword
- name: FLYWAY_URL
value: 'jdbc:postgresql://{{ .Release.Name }}-bitnami-pg:5432/quickstart'
key: databaseJDBCURLNoCreds
- name: FLYWAY_USER
key: databaseUser
fromValues:
- name: FLYWAY_BASELINE_ON_MIGRATE
value: "true"
- name: FLYWAY_DEFAULT_SCHEMA
value: "USERS"
- name: FLYWAY_USER
value: "quickstart"
resources:
limits:
cpu: 500m
Expand Down Expand Up @@ -320,10 +322,9 @@ bitnami-pg:
repository: bcgov/nr-containers/bitnami/postgresql
tag: 15.4.0
auth:
username: quickstart
password: default # overridden at deployment
existingSecret: '{{ .Release.Name }}'
username: 'quickstart'
database: quickstart
postgresPassword: default # overridden at deployment
shmVolume:
enabled: false
backup:
Expand Down Expand Up @@ -404,17 +405,21 @@ backup:
- name: MONTHLY_BACKUPS
value: '1'
- name: DATABASE_SERVICE_NAME # depends on which chart being used, adjust accordingly.
value: '{{.Release.Name}}-bitnami-pg'
value: '{{.Release.Name}}-{{.Values.global.databaseAlias}}'
- name: DEFAULT_PORT
value: "5432"
- name: POSTGRESQL_DATABASE
value: "quickstart"
- name: DATABASE_USER
value: "quickstart"
fromLocalSecret:
fromGlobalSecret:
- name: DATABASE_PASSWORD
key: password
secretName: '{{ .Release.Name }}-bitnami-pg' # this is interpolated, it will be replaced with the actual value, pg is the alias for crunchy.
- name: POSTGRESQL_DATABASE
key: databaseName
- name: DATABASE_USER
key: databaseUser
resources:
limits:
cpu: 50m
Expand Down

0 comments on commit 64c820f

Please sign in to comment.