Skip to content

Commit

Permalink
[pgadmin4] make it possible to use https in container (#237)
Browse files Browse the repository at this point in the history
* user portName in container ports and make it possible to use  https in container

* Update Chart.yaml

---------

Co-authored-by: Rowan Ruseler <[email protected]>
  • Loading branch information
bitnik and rowanruseler authored Jan 16, 2024
1 parent 5201a05 commit 32da52c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 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.22.0
version: 1.23.0
appVersion: "8.1"
keywords:
- pgadmin
Expand Down
17 changes: 13 additions & 4 deletions charts/pgadmin4/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,40 +86,49 @@ spec:
{{- toYaml .Values.args | nindent 12 }}
{{- end }}
ports:
- name: http
- name: {{ .Values.service.portName }}
containerPort: {{ .Values.containerPorts.http }}
protocol: TCP
{{- if .Values.livenessProbe }}
livenessProbe:
httpGet:
port: http
port: {{ .Values.service.portName }}
{{- if .Values.env.contextPath }}
path: "{{ .Values.env.contextPath }}/misc/ping"
{{- else }}
path: /misc/ping
{{- end }}
{{- if or (eq (.Values.service.portName | lower) "http") (eq (.Values.service.portName | lower) "https") }}
scheme: {{ upper .Values.service.portName }}
{{- end }}
{{- .Values.livenessProbe | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.startupProbe }}
startupProbe:
httpGet:
port: http
port: {{ .Values.service.portName }}
{{- if .Values.env.contextPath }}
path: "{{ .Values.env.contextPath }}/misc/ping"
{{- else }}
path: /misc/ping
{{- end }}
{{- if or (eq (.Values.service.portName | lower) "http") (eq (.Values.service.portName | lower) "https") }}
scheme: {{ upper .Values.service.portName }}
{{- end }}
{{- .Values.startupProbe | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.readinessProbe }}
readinessProbe:
httpGet:
port: http
port: {{ .Values.service.portName }}
{{- if .Values.env.contextPath }}
path: "{{ .Values.env.contextPath }}/misc/ping"
{{- else }}
path: /misc/ping
{{- end }}
{{- if or (eq (.Values.service.portName | lower) "http") (eq (.Values.service.portName | lower) "https") }}
scheme: {{ upper .Values.service.portName }}
{{- end }}
{{- .Values.readinessProbe | toYaml | nindent 12 }}
{{- end }}
env:
Expand Down

0 comments on commit 32da52c

Please sign in to comment.