Skip to content

misc: exposed the postgres endpoint in migrator and app-sync #6570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions charts/devtron/templates/app-sync-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ spec:
image: {{ include "common.image" (dict "component" $.Values.components.chartSync "global" $.Values.global ) }}
{{- include "common.containerSecurityContext" (dict "containerSecurityContext" $.Values.components.chartSync.containerSecurityContext "global" $.Values.global) | indent 8 }}
env:
- name: PG_ADDR
value: postgresql-postgresql.devtroncd
- name: PG_DATABASE
value: orchestrator
- name: PG_USER
value: postgres
envFrom:
- configMapRef:
name: app-sync-cm
- secretRef:
name: devtron-secret
- configMapRef:
Expand Down Expand Up @@ -80,8 +80,6 @@ spec:
image: {{ include "common.image" (dict "component" $.Values.components.chartSync "global" $.Values.global ) }}
{{- include "common.containerSecurityContext" (dict "containerSecurityContext" $.Values.components.chartSync.containerSecurityContext "global" $.Values.global) | indent 12 }}
env:
- name: PG_ADDR
value: postgresql-postgresql.devtroncd
- name: PG_DATABASE
value: orchestrator
- name: PG_USER
Expand Down
12 changes: 6 additions & 6 deletions charts/devtron/templates/migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
- name: PG_USER
value: postgres
- name: PG_ADDR
value: postgresql-postgresql.devtroncd
value: {{ .configs.PG_ADDR | default "postgresql-postgresql.devtroncd" }}
- name: DB_PORT
value: "5432"
- name: PG_DATABASE
Expand Down Expand Up @@ -80,7 +80,7 @@ spec:
- name: DB_USER_NAME
value: postgres
- name: DB_HOST
value: postgresql-postgresql.devtroncd
value: {{ .configs.PG_ADDR | default "postgresql-postgresql.devtroncd" }}
- name: DB_PORT
value: "5432"
- name: DB_NAME
Expand Down Expand Up @@ -186,7 +186,7 @@ spec:
- name: DB_USER_NAME
value: postgres
- name: DB_HOST
value: postgresql-postgresql.devtroncd
value: {{ .configs.PG_ADDR | default "postgresql-postgresql.devtroncd" }}
- name: DB_PORT
value: "5432"
- name: DB_NAME
Expand Down Expand Up @@ -273,7 +273,7 @@ spec:
- name: DB_USER_NAME
value: postgres
- name: DB_HOST
value: postgresql-postgresql.devtroncd
value: {{ .configs.PG_ADDR | default "postgresql-postgresql.devtroncd" }}
- name: DB_PORT
value: "5432"
- name: DB_NAME
Expand Down Expand Up @@ -355,7 +355,7 @@ spec:
- name: DB_USER_NAME
value: postgres
- name: DB_HOST
value: postgresql-postgresql.devtroncd
value: {{ .configs.PG_ADDR | default "postgresql-postgresql.devtroncd" }}
- name: DB_PORT
value: "5432"
- name: DB_NAME
Expand Down Expand Up @@ -430,7 +430,7 @@ spec:
- name: DB_USER_NAME
value: postgres
- name: DB_HOST
value: postgresql-postgresql.devtroncd
value: {{ .configs.PG_ADDR | default "postgresql-postgresql.devtroncd" }}
- name: DB_PORT
value: "5432"
- name: DB_NAME
Expand Down
5 changes: 4 additions & 1 deletion charts/devtron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ components:
kubectlImage: "kubectl:latest"
duplicateChartImage: devtron-utils:dup-chart-repo-v1.1.0
entMigratorImage: "devtron-utils:geni-v1.1.4"
configs:
PG_ADDR: postgresql-postgresql.devtroncd
envVars:
devtron:
DB_NAME: "orchestrator"
Expand All @@ -259,7 +261,8 @@ components:
registry: ""
image: chart-sync:c49b4aa5-836-32103
schedule: "0 19 * * *"
extraConfigs: {}
extraConfigs:
PG_ADDR: postgresql-postgresql.devtroncd
podSecurityContext:
fsGroup: 1001
runAsGroup: 1001
Expand Down