Skip to content

Commit

Permalink
added environment variables for link service DB parameters in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyo-s committed Oct 19, 2024
1 parent f57d9bd commit 024eb6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/like-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ spec:
value: {{ quote .Values.likeService.deployment.container.env.API_PATH }}
- name: USER_AUTH_SERVICE_ADDRESS
value: {{ quote .Values.likeService.deployment.container.env.USER_AUTH_SERVICE_ADDRESS }}
- name: DB_HOST
value: {{ quote .Values.likeService.deployment.container.env.DB_HOST }}
- name: DB_PORT
value: {{ quote .Values.likeService.deployment.container.env.DB_PORT }}
- name: MARIADB_PASSWORD
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ likeService:
SERVER_PORT: 8000
API_PATH: /like-service
USER_AUTH_SERVICE_ADDRESS: unguard-user-auth-service
DB_HOST: "{{ .Values.mariaDB.serviceName }}"
DB_PORT: "3306"
MARIADB_PASSWORD:
secretKeyRef:
name: "{{ .Values.mariaDB.serviceName }}"
Expand Down

0 comments on commit 024eb6e

Please sign in to comment.