Skip to content

Commit

Permalink
Merge pull request #8320 from r4f4/agent-proxy-escape
Browse files Browse the repository at this point in the history
OCPBUGS-33024: agent: escape '%' in proxy settings
  • Loading branch information
openshift-merge-bot[bot] committed Apr 29, 2024
2 parents 1a3d6c2 + c2bd15f commit 55f8072
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{if .Proxy -}}
[Manager]
{{if .Proxy.HTTPProxy -}}
DefaultEnvironment=HTTP_PROXY="{{.Proxy.HTTPProxy}}"
DefaultEnvironment=HTTP_PROXY="{{replace .Proxy.HTTPProxy "%" "%%"}}"
{{end -}}
{{if .Proxy.HTTPSProxy -}}
DefaultEnvironment=HTTPS_PROXY="{{.Proxy.HTTPSProxy}}"
DefaultEnvironment=HTTPS_PROXY="{{replace .Proxy.HTTPSProxy "%" "%%"}}"
{{end -}}
{{if .Proxy.NoProxy -}}
DefaultEnvironment=NO_PROXY="{{.Proxy.NoProxy}}"
{{end -}}
{{end -}}
{{end -}}

0 comments on commit 55f8072

Please sign in to comment.