[stable/superset] Add env vars from values or secret (#5745)

* Add env from value file or secret

* Update README

* Update variables naming, Update Chart version
This commit is contained in:
Fabio Todaro
2018-06-01 09:15:56 -07:00
committed by k8s-ci-robot
parent 1aede1787c
commit e087f331f2
4 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
description: Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application
name: superset
version: 0.1.1
version: 0.1.2
appVersion: "0.24.0"
keywords:
- bi
+2
View File
@@ -47,6 +47,8 @@ The command removes all the Kubernetes components associated with the chart and
| `configFile` | Content of [`superset_config.py`](https://superset.incubator.apache.org/installation.html) | See values.yaml](./values.yaml) |
| `initFile` | Content of init shell script | See [values.yaml](./values.yaml) |
| `replicas` | Number of replicas of superset | `1` |
| `extraEnv` | Extra environment variables passed to pods | `{}` |
| `extraEnvFromSecret` | The name of a Kubernetes secret (must be manually created in the same namespace) containing values to be added to the environment | `""` |
| `persistence.enabled` | Enable persistence | `false` |
| `persistence.existingClaim`| Provide an existing PersistentVolumeClaim | `""` |
| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) |
+10
View File
@@ -56,6 +56,16 @@ spec:
- name: http
containerPort: 8088
protocol: TCP
env:
{{- range $key, $value := .Values.extraEnv }}
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- if .Values.extraEnvFromSecret }}
envFrom:
- secretRef:
name: {{ .Values.extraEnvFromSecret }}
{{- end }}
{{- with .Values.resources }}
resources:
{{ toYaml . | indent 12 }}
+8
View File
@@ -47,6 +47,14 @@ configFile: |-
# Set this API key to enable Mapbox visualizations
MAPBOX_API_KEY = ''
## Extra environment variables that will be passed onto deployment pod
##
extraEnv: {}
## The name of a secret in the same kubernetes namespace which contain values to be added to the environment
## This can be useful for secret keys, etc
##
extraEnvFromSecret: ""
persistence: