From 07940ccaf4b360eabeec56593c8a7123f83847c4 Mon Sep 17 00:00:00 2001 From: "josh.paulin" Date: Tue, 21 Mar 2023 16:43:16 -0400 Subject: [PATCH] Allow setting ingress hosts directly through yaml --- helm/superset/Chart.yaml | 2 +- helm/superset/README.md | 3 ++- helm/superset/templates/ingress.yaml | 6 ++++++ helm/superset/values.yaml | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index bcc7a96122191..8a7ec77cbe3e1 100644 --- a/helm/superset/Chart.yaml +++ b/helm/superset/Chart.yaml @@ -29,7 +29,7 @@ maintainers: - name: craig-rueda email: craig@craigrueda.com url: https://github.com/craig-rueda -version: 0.8.7 +version: 0.8.8 dependencies: - name: postgresql version: 12.1.6 diff --git a/helm/superset/README.md b/helm/superset/README.md index eb0c24946a285..89db4119a2eba 100644 --- a/helm/superset/README.md +++ b/helm/superset/README.md @@ -23,7 +23,7 @@ NOTE: This file is generated by helm-docs: https://github.com/norwoodj/helm-docs # superset -![Version: 0.8.7](https://img.shields.io/badge/Version-0.8.7-informational?style=flat-square) +![Version: 0.8.8](https://img.shields.io/badge/Version-0.8.8-informational?style=flat-square) Apache Superset is a modern, enterprise-ready business intelligence web application @@ -74,6 +74,7 @@ helm install my-superset superset/superset | imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | | ingress.enabled | bool | `false` | | +| ingress.extraHostsRaw | list | `[]` | | | ingress.hosts[0] | string | `"chart-example.local"` | | | ingress.path | string | `"/"` | | | ingress.pathType | string | `"ImplementationSpecific"` | | diff --git a/helm/superset/templates/ingress.yaml b/helm/superset/templates/ingress.yaml index d166149c00ba1..5a36a48006138 100644 --- a/helm/superset/templates/ingress.yaml +++ b/helm/superset/templates/ingress.yaml @@ -45,6 +45,9 @@ spec: {{- end }} {{- end }} rules: + {{- if .Values.ingress.extraHostsRaw }} + {{- toYaml .Values.extraEnvRaw | nindent 12 }} + {{- end }} {{- range .Values.ingress.hosts }} - host: {{ . }} http: @@ -66,4 +69,7 @@ spec: name: ws {{- end }} {{- end }} + {{- if .Values.ingress.extraHostsRaw }} + {{- toYaml .Values.ingress.extraHostsRaw | nindent 4 }} + {{- end }} {{- end }} diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index c703effbf050a..5a3103a4173dd 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -219,6 +219,7 @@ ingress: hosts: - chart-example.local tls: [] + extraHostsRaw: [] # - secretName: chart-example-tls # hosts: # - chart-example.local