diff --git a/charts/sigi/v0.1.0/questions.yaml b/charts/sigi/v0.1.0/questions.yaml index 8dc59ce..5d79b7b 100644 --- a/charts/sigi/v0.1.0/questions.yaml +++ b/charts/sigi/v0.1.0/questions.yaml @@ -99,7 +99,7 @@ questions: type: boolean group: PostgreSQL required: false -- variable: postgresql.postgresqlPassword +- variable: postgresql.auth.Password default: "sigi" description: "Senha do banco de dados Postgres" label: "Senha do Postgres" diff --git a/charts/sigi/v0.1.0/templates/deployment.yaml b/charts/sigi/v0.1.0/templates/deployment.yaml index 06caedc..42c6b46 100644 --- a/charts/sigi/v0.1.0/templates/deployment.yaml +++ b/charts/sigi/v0.1.0/templates/deployment.yaml @@ -38,7 +38,7 @@ spec: protocol: TCP env: - name: DATABASE_URL - value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.postgresqlUsername .Values.postgresql.postgresqlPassword (include "postgresql.fullname" .) .Values.postgresql.postgresqlDatabase| quote }} + value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.auth.username .Values.postgresql.auth.password (include "postgresql.fullname" .) .Values.postgresql.auth.database| quote }} - name: ADMIN_PASSWORD value: "{{ .Values.sigi.adminPassword }}" - name: ADMIN_EMAIL @@ -59,7 +59,7 @@ spec: # - mountPath: /var/interlegis/sigi/data # name: data - mountPath: /srv/interlegis/sigi/media - name: media + name: {{ include "sigi.fullname" . }}-media livenessProbe: httpGet: path: / @@ -85,7 +85,7 @@ spec: # secret: # defaultMode: 440 # secretName: {{ include "sigi.fullname" . }}-secretkey - - name: media + - name: {{ include "sigi.fullname" . }}-media {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ include "sigi.fullname" . }}-media diff --git a/charts/sigi/v0.1.0/values.yaml b/charts/sigi/v0.1.0/values.yaml index 023bd3d..ee92705 100644 --- a/charts/sigi/v0.1.0/values.yaml +++ b/charts/sigi/v0.1.0/values.yaml @@ -85,8 +85,8 @@ velero: postgresql: internal: true image: -# repository: porto.interlegis.leg.br/bitnami/postgresql -# registry: porto.interlegis.leg.br + # repository: porto.interlegis.leg.br/bitnami/postgresql + # registry: porto.interlegis.leg.br registry: docker.io repository: bitnami/postgresql tag: 14.4.0-debian-11-r0 @@ -97,9 +97,11 @@ postgresql: persistence: enabled: true size: 1Gi - postgresqlPassword: sigi - postgresqlUsername: sigi - postgresqlDatabase: sigi + auth: + postgresPassword: sigi + password: sigi + username: sigi + database: sigi resources: requests: cpu: 50m