Skip to content

Commit 2777937

Browse files
Add conditional TLS support for the Ingress in the Helm chart. #9345
1 parent 482549b commit 2777937

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

pkg/helm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ The chart should dump its version and appVersion in the Chart.yaml file every re
3939
| `service.loadBalancerIP` | Load balancer IP (Only if service.type is LoadBalancer) | `""` |
4040
| `ingress.enabled` | Ingress resource creation | `false` |
4141
| `ingress.hostname` | Ingress resource hostname | `"pgadmin4.local"` |
42+
| `ingress.tlsSecret` | Ingress tls secret name | `""` |

pkg/helm/templates/ingress.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ spec:
2121
name: http
2222
path: /
2323
pathType: Prefix
24+
{{- if .Values.ingress.tlsSecret }}
25+
tls:
26+
- hosts:
27+
- {{ tpl .Values.ingress.hostname . }}
28+
secretName: {{ .Values.ingress.tlsSecret }}
29+
{{- end }}
2430
{{- end }}

pkg/helm/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ ingress:
9898
enabled: false
9999
hostname: pgadmin4.local
100100
annotations: {}
101-
101+
# If set, enables TLS configuration in the Ingress resource.
102+
tlsSecret: ""
102103
startupProbe:
103104
enabled: false
104105
httpGet:

0 commit comments

Comments
 (0)