Skip to content

Commit

Permalink
[pgadmin4] fix bug where secret isnt created when using .serverDefini…
Browse files Browse the repository at this point in the history
…tions.resourceType (#252)

Signed-off-by: Alex Hofmann <45359966+alexhfmnn@users.noreply.github.com>
Co-authored-by: Rowan Ruseler <rowanruseler@gmail.com>
  • Loading branch information
alexhfmnn and rowanruseler authored May 23, 2024
1 parent 8027e07 commit 8a8a2f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/pgadmin4/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: pgAdmin4 is a web based administration tool for PostgreSQL database
name: pgadmin4
version: 1.25.2
version: 1.25.3
appVersion: "8.6"
keywords:
- pgadmin
Expand Down
4 changes: 2 additions & 2 deletions charts/pgadmin4/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ Generate serverDefinitions secret name
{{- if eq .Values.serverDefinitions.resourceType "Secret" -}}
{{- if .Values.serverDefinitions.existingSecret }}
{{- printf "%s" (.Values.serverDefinitions.existingSecret) }}
{{- else if .Values.serverDefinitions.servers }}
{{- include "pgadmin.fullname" . }}-server-definitions
{{- else if .Values.existingSecret }}
{{- printf "%s" (.Values.existingSecret) }}
{{- else }}
{{- include "pgadmin.fullname" . }}-server-definitions
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/pgadmin4/templates/server-definitions-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (not .Values.serverDefinitions.existingSecret) (not .Values.existingSecret) -}}
{{- if not .Values.serverDefinitions.existingSecret -}}
{{- if and (.Values.serverDefinitions.enabled) ( eq .Values.serverDefinitions.resourceType "Secret") (.Values.serverDefinitions.servers) }}
apiVersion: v1
kind: Secret
Expand Down

0 comments on commit 8a8a2f5

Please sign in to comment.