diff --git a/pkg/helm/README.md b/pkg/helm/README.md index e5bc5e6a338..4c7f3e0749d 100644 --- a/pkg/helm/README.md +++ b/pkg/helm/README.md @@ -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 | `""` | diff --git a/pkg/helm/templates/ingress.yaml b/pkg/helm/templates/ingress.yaml index b89df98b78c..25216c10768 100644 --- a/pkg/helm/templates/ingress.yaml +++ b/pkg/helm/templates/ingress.yaml @@ -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 }} \ No newline at end of file diff --git a/pkg/helm/values.yaml b/pkg/helm/values.yaml index 76866370676..cf9aaf3c137 100644 --- a/pkg/helm/values.yaml +++ b/pkg/helm/values.yaml @@ -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: