Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add proxyURL, deployment env variable if-loop (#156)
* add proxyURL, deployment env variable if-loop

* add changes to use extraEnv section from values
  • Loading branch information
rajinator authored and PrasadG193 committed Aug 20, 2019
1 parent 1f9efd6 commit 6db72e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/botkube/templates/deployment.yaml
Expand Up @@ -42,6 +42,12 @@ spec:
value: {{ .Values.logLevel | quote }}
- name: BOTKUBE_VERSION
value: {{ .Chart.Version }}
{{- if .Values.extraEnv }}
{{- range $name, $value := .Values.extraEnv }}
- name: {{ $name }}
value: {{ quote $value }}
{{- end }}
{{- end }}
volumes:
- name: config-volume
configMap:
Expand Down
3 changes: 3 additions & 0 deletions helm/botkube/values.yaml
Expand Up @@ -202,6 +202,9 @@ resources: {}
# cpu: 100m
# memory: 128Mi

extraEnv: # Extra environment variables to pass to the botkube container, example HTTP_PROXY
#HTTP_PROXY: <proxyURL>:<port>

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 6db72e1

Please sign in to comment.