Skip to content

Commit

Permalink
fix: correct template functions form postgresql chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Jan 28, 2025
1 parent 10df669 commit fb94bd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/shlink/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Name of the Secret that contains the PostgreSQL password
*/}}
{{- define "shlink.postgresql.secret" -}}
{{- if .Values.postgresql.enabled }}
{{- include "postgresql.secretName" .Subcharts.postgresql -}}
{{- include "postgresql.v1.secretName" .Subcharts.postgresql -}}
{{- else if .Values.externalDatabase.existingSecretName }}
{{- .Values.externalDatabase.existingSecretName }}
{{- else }}
Expand All @@ -80,7 +80,7 @@ Name of the key in Secret that contains the PostgreSQL password
*/}}
{{- define "shlink.postgresql.secretKey" -}}
{{- if .Values.postgresql.enabled -}}
{{- include "postgresql.userPasswordKey" .Subcharts.postgresql -}}
{{- include "postgresql.v1.userPasswordKey" .Subcharts.postgresql -}}
{{- else if .Values.externalDatabase.existingSecretName -}}
{{- .Values.externalDatabase.existingSecretKey -}}
{{- else -}}
Expand Down
8 changes: 4 additions & 4 deletions charts/shlink/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ spec:
value: "postgres"
{{- if .Values.postgresql.enabled }}
- name: DB_HOST
value: {{ include "postgresql.primary.fullname" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql | quote }}
- name: DB_PORT
value: {{ include "postgresql.service.port" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.service.port" .Subcharts.postgresql | quote }}
- name: DB_USER
value: {{ include "postgresql.username" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.username" .Subcharts.postgresql | quote }}
- name: DB_NAME
value: {{ include "postgresql.database" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql | quote }}
{{- else }}
- name: DB_HOST
value: {{ .Values.externalDatabase.host | quote }}
Expand Down

0 comments on commit fb94bd9

Please sign in to comment.