Skip to content

Commit 55f8072

Browse files
Merge pull request openshift#8320 from r4f4/agent-proxy-escape
OCPBUGS-33024: agent: escape '%' in proxy settings
2 parents 1a3d6c2 + c2bd15f commit 55f8072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{{if .Proxy -}}
22
[Manager]
33
{{if .Proxy.HTTPProxy -}}
4-
DefaultEnvironment=HTTP_PROXY="{{.Proxy.HTTPProxy}}"
4+
DefaultEnvironment=HTTP_PROXY="{{replace .Proxy.HTTPProxy "%" "%%"}}"
55
{{end -}}
66
{{if .Proxy.HTTPSProxy -}}
7-
DefaultEnvironment=HTTPS_PROXY="{{.Proxy.HTTPSProxy}}"
7+
DefaultEnvironment=HTTPS_PROXY="{{replace .Proxy.HTTPSProxy "%" "%%"}}"
88
{{end -}}
99
{{if .Proxy.NoProxy -}}
1010
DefaultEnvironment=NO_PROXY="{{.Proxy.NoProxy}}"
1111
{{end -}}
12-
{{end -}}
12+
{{end -}}

0 commit comments

Comments
 (0)