[stable/kube-ops-view] add environment variables (#23409)

* Added environment variables to kube-ops-view

Signed-off-by: Paul Rostorp <paul.rostorp@letsbuild.com>

* update chart version

Signed-off-by: Paul Rostorp <paul.rostorp@letsbuild.com>

* add env to readme

Signed-off-by: Paul Rostorp <paul.rostorp@letsbuild.com>
This commit is contained in:
Paul Rostorp
2020-09-01 14:41:07 -07:00
committed by GitHub
parent 871a1bed72
commit 7f742bb8ce
4 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: kube-ops-view
version: 1.2.0
version: 1.2.1
appVersion: 20.4.0
description: Kubernetes Operational View - read-only system dashboard for multiple
K8s clusters
+5
View File
@@ -35,3 +35,8 @@ $ helm delete my-release
```
The command removes all the Kubernetes components associated with the chart and deletes the release.
## Variables
| Parameter | Description | Default |
| -------------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------- |
| `env` | Pass environment variables to the pod ([more info](https://github.com/hjacobs/kube-ops-view#configuration)) | `{}` |
@@ -53,6 +53,11 @@ spec:
args:
- --redis-url=redis://{{ .Release.Name }}-redis-master:{{ .Values.redis.master.port }}
{{- end }}
env:
{{- range $key, $value := index .Values "env" }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- with .Values.securityContext }}
securityContext: {{ toYaml . | nindent 10 }}
{{- end }}
+3
View File
@@ -43,6 +43,9 @@ affinity: {}
nodeSelector: {}
tolerations: []
# pass env vars like this: helm [...] --set env.ENV_NAME=env_value,env.ENV_NAME2=env_value2
env: {}
# Add securityContext
securityContext: {}