Skip to content

Commit

Permalink
refactor: proxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Jun 4, 2023
1 parent 37f6ca4 commit 18c31d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,25 @@ spec:
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- with .Values.httpProxy }}
{{- if .Values.proxy.enabled -}}
{{- with .Values.proxy.httpProxy }}
- name: HTTP_PROXY
value: {{ . | quote }}
- name: http_proxy
value: {{ . | quote }}
{{- end }}
{{- with .Values.httpsProxy }}
{{- with .Values.proxy.httpsProxy }}
- name: HTTPS_PROXY
value: {{ . | quote }}
- name: https_proxy
value: {{ . | quote }}
{{- end }}
{{- with .Values.noProxy }}
{{- with .Values.proxy.noProxy }}
- name: NO_PROXY
value: {{ . | quote }}
- name: no_proxy
value: {{ . | quote }}
{{- end }}
{{- end }}
- name: DOCKER_HOST
value: localhost
Expand Down
9 changes: 6 additions & 3 deletions charts/lagoon-docker-host/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ pruneImagesUntil: 168h

replicaCount: 1


## proxy configuration
# httpProxy: ""
# httpsProxy: ""
# noProxy: ""
proxy:
enabled: false
# httpProxy: ""
# httpsProxy: ""
# noProxy: ""

# add extra environment variables if required
extraEnvs:
Expand Down

0 comments on commit 18c31d6

Please sign in to comment.