Skip to content

Commit 3e74ff1

Browse files
authored
refactor(helm): Allow chart operators to exclude the creation of the secret manifest (#28308)
1 parent b4c4ab7 commit 3e74ff1

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

helm/superset/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ maintainers:
2929
- name: craig-rueda
3030
3131
url: https://github.com/craig-rueda
32-
version: 0.12.9
32+
version: 0.12.10
3333
dependencies:
3434
- name: postgresql
3535
version: 12.1.6

helm/superset/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ NOTE: This file is generated by helm-docs: https://github.com/norwoodj/helm-docs
2323

2424
# superset
2525

26-
![Version: 0.12.9](https://img.shields.io/badge/Version-0.12.9-informational?style=flat-square)
26+
![Version: 0.12.10](https://img.shields.io/badge/Version-0.12.10-informational?style=flat-square)
2727

2828
Apache Superset is a modern, enterprise-ready business intelligence web application
2929

@@ -117,6 +117,8 @@ On helm this can be set on `extraSecretEnv.SUPERSET_SECRET_KEY` or `configOverri
117117
| redis | object | see `values.yaml` | Configuration values for the Redis dependency. ref: https://github.com/bitnami/charts/blob/master/bitnami/redis More documentation can be found here: https://artifacthub.io/packages/helm/bitnami/redis |
118118
| resources | object | `{}` | |
119119
| runAsUser | int | `0` | User ID directive. This user must have enough permissions to run the bootstrap script Running containers as root is not recommended in production. Change this to another UID - e.g. 1000 to be more secure |
120+
| secretEnv | object | `{"create":true}` | Specify rather or not helm should create the secret described in `secret-env.yaml` template |
121+
| secretEnv.create | bool | `true` | Change to false in order to support externally created secret (Binami "Sealed Secrets" for Kubernetes or External Secrets Operator) note: when externally creating the secret, the chart still expects to pull values from a secret with the name of the release defaults to `release-name-superset-env` - full logic located in _helpers.tpl file: `define "superset.fullname"` |
120122
| service.annotations | object | `{}` | |
121123
| service.loadBalancerIP | string | `nil` | |
122124
| service.nodePort.http | int | `"nil"` | |

helm/superset/templates/secret-env.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
limitations under the License.
1717

1818
*/}}
19-
19+
{{- if .Values.secretEnv.create -}}
2020
apiVersion: v1
2121
kind: Secret
2222
metadata:
@@ -51,3 +51,4 @@ stringData:
5151
{{ $key }}: {{ $value | quote }}
5252
{{- end }}
5353
{{- end }}
54+
{{- end }}

helm/superset/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ fullnameOverride: ~
3131
# Running containers as root is not recommended in production. Change this to another UID - e.g. 1000 to be more secure
3232
runAsUser: 0
3333

34+
# -- Specify rather or not helm should create the secret described in `secret-env.yaml` template
35+
secretEnv:
36+
# -- Change to false in order to support externally created secret (Binami "Sealed Secrets" for Kubernetes or External Secrets Operator)
37+
# note: when externally creating the secret, the chart still expects to pull values from a secret with the name of the release defaults to `release-name-superset-env` - full logic located in _helpers.tpl file: `define "superset.fullname"`
38+
create: true
39+
3440
# -- Specify service account name to be used
3541
serviceAccountName: ~
3642
serviceAccount:

0 commit comments

Comments
 (0)