Add conditional TLS support for the Ingress in the Helm chart. #9345

pull/9381/head
Nicolas Boulard 2025-11-21 07:38:22 +01:00 committed by GitHub
parent 482549b951
commit 27779370d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View File

@ -39,3 +39,4 @@ The chart should dump its version and appVersion in the Chart.yaml file every re
| `service.loadBalancerIP` | Load balancer IP (Only if service.type is LoadBalancer) | `""` |
| `ingress.enabled` | Ingress resource creation | `false` |
| `ingress.hostname` | Ingress resource hostname | `"pgadmin4.local"` |
| `ingress.tlsSecret` | Ingress tls secret name | `""` |

View File

@ -21,4 +21,10 @@ spec:
name: http
path: /
pathType: Prefix
{{- if .Values.ingress.tlsSecret }}
tls:
- hosts:
- {{ tpl .Values.ingress.hostname . }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
{{- end }}

View File

@ -98,7 +98,8 @@ ingress:
enabled: false
hostname: pgadmin4.local
annotations: {}
# If set, enables TLS configuration in the Ingress resource.
tlsSecret: ""
startupProbe:
enabled: false
httpGet: