Skip to content

Commit b89b8ff

Browse files
authored
Merge pull request #758 from umagnus/support_https_proxy
feat: support https proxy and http proxy in chart config
2 parents e5737c6 + adc161a commit b89b8ff

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed
54 Bytes
Binary file not shown.

charts/latest/blob-csi-driver/templates/csi-blob-controller.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ spec:
128128
optional: true
129129
- name: CSI_ENDPOINT
130130
value: unix:///csi/csi.sock
131+
{{- if ne .Values.driver.httpsProxy "" }}
132+
- name: HTTPS_PROXY
133+
value: {{ .Values.driver.httpsProxy }}
134+
{{- end }}
135+
{{- if ne .Values.driver.httpProxy "" }}
136+
- name: HTTP_PROXY
137+
value: {{ .Values.driver.httpProxy }}
138+
{{- end }}
131139
- name: AZURE_GO_SDK_LOG_LEVEL
132140
value: {{ .Values.driver.azureGoSDKLogLevel }}
133141
{{- if eq .Values.cloud "AzureStackCloud" }}

charts/latest/blob-csi-driver/templates/csi-blob-node.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ spec:
184184
value: unix:///csi/csi.sock
185185
- name: BLOBFUSE_PROXY_ENDPOINT
186186
value: unix:///csi/blobfuse-proxy.sock
187+
{{- if ne .Values.driver.httpsProxy "" }}
188+
- name: HTTPS_PROXY
189+
value: {{ .Values.driver.httpsProxy }}
190+
{{- end }}
191+
{{- if ne .Values.driver.httpProxy "" }}
192+
- name: HTTP_PROXY
193+
value: {{ .Values.driver.httpProxy }}
194+
{{- end }}
187195
- name: KUBE_NODE_NAME
188196
valueFrom:
189197
fieldRef:

charts/latest/blob-csi-driver/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ driver:
158158
customUserAgent: ""
159159
userAgentSuffix: "OSS-helm"
160160
azureGoSDKLogLevel: "" # available values: ""(no logs), DEBUG, INFO, WARNING, ERROR
161+
httpsProxy: ""
162+
httpProxy: ""
161163

162164
linux:
163165
kubelet: /var/lib/kubelet

0 commit comments

Comments
 (0)