Skip to content

Commit

Permalink
Helm Chart 1.0.3: fix postgres host var
Browse files Browse the repository at this point in the history
  • Loading branch information
Stogas committed Aug 13, 2024
1 parent 9e0151d commit c714885
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: feedback-api
description: A Helm chart for deploying Feedback-API
type: application
version: 1.0.2
appVersion: "v1.0.2"
version: 1.0.3
appVersion: "v1.0.3"
sources:
- https://github.com/Stogas/feedback-api
- https://github.com/Stogas/feedback-api/helm-chart
Expand Down
3 changes: 3 additions & 0 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ spec:
timeoutSeconds: 3
failureThreshold: 3
periodSeconds: 5
env:
- name: POSTGRES_HOST
value: "{{ include "feedbackapi.fullname" $ }}-postgresql"
envFrom:
- configMapRef:
name: {{ include "feedbackapi.fullname" $ }}
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image:
configMap:
API_LISTEN_PORT: 8080
API_DEBUG_MODE: "false"
POSTGRES_HOST: "{{ include "feedbackapi.fullname" $ }}-postgresql"
# POSTGRES_HOST: ""
POSTGRES_PORT: 5432
POSTGRES_USER: "feedbackapi"
POSTGRES_DATABASE: "feedbackapi"
Expand Down

0 comments on commit c714885

Please sign in to comment.