Skip to content

Commit

Permalink
fix: coleman management chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Mar 8, 2023
1 parent e851474 commit f367436
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/coleman-management/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ dependencies:
repository: https://charts.bitnami.com/bitnami

type: application
version: 0.6.0
version: 0.6.1
appVersion: "1.16.0"
10 changes: 5 additions & 5 deletions charts/coleman-management/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ spec:
image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.api.image.pullPolicy }}
{{- if .Values.postgresql.enabled }}
{{ $host := include "postgresql.fullname" . }}
{{ $port := include "postgresql.service.port" . }}
{{ $database := include "postgresql.database" . }}
{{ $host := include "postgresql.primary.fullname" . }}
{{ $port := .Values.postgresql.global.postgresql.service.ports.postgresql }}
{{ $database := .Values.postgresql.auth.database }}
{{ $databaseUrl := printf "jdbc:postgresql://%s:%.0f/%s" $host $port $database }}
env:
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "coleman-management.postgresql.fullname" .}}
name: {{ include "coleman-management.postgresql.fullname" . }}
key: password
- name: SPRING_DATASOURCE_URL
value: {{$databaseUrl}}
value: {{ $databaseUrl | quote }}
- name: SPRING_DATASOURCE_USERNAME
value: {{ .Values.postgresql.auth.username | quote}}
{{- end }}
Expand Down
9 changes: 7 additions & 2 deletions charts/coleman-management/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ ui:
env: {}

api:
enabled: false
enabled: true
replicaCount: 1

image:
Expand Down Expand Up @@ -198,7 +198,12 @@ api:
jobLabel: ""

postgresql:
enabled: false
enabled: true
global:
postgresql:
service:
ports:
postgresql: 5432
fullnameOverride: ""
nameOverride: ""
auth:
Expand Down

0 comments on commit f367436

Please sign in to comment.