mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user