Cause: Proxy value validation prevented use of default cluster proxy settings with ssh git urls.
Consequence: Buildconfigs that used ssh git urls in a cluster with default proxy settings would get a validation error unless the proxy value was explicitly set to empty string in the buildconfig.
Fix: Validation will no longer reject buildconfigs that use ssh git urls and have a proxy value set. However the proxy value will not be used when an ssh git url is supplied.
Result: Buildconfigs that specify ssh git urls will not get a validation error even if the cluster defines a default git proxy value.
Have test with below version,still can reproduce this bug:
openshift v3.3.1.9
kubernetes v1.3.0+52492b4
etcd 2.3.0+git
Here are my steps:
1. Create a buildconfig with http/s proxy set:
source:
git:
httpProxy: http://XXXXXXX:3128
httpsProxy: https://XXXXXX:3128
uri: git://github.com/openshift/ruby-hello-world.git
type: Git
2. Build config cannot be saved with below error:
spec.source.git.uri: Invalid value: "git://github.com/openshift/ruby-hello-world.git": only http:// and https:// GIT protocols are allowed with HTTP or HTTPS proxy set
If I define gitHTTPProxy/gitHTTPSProxy in master-config.yaml, then start build with git repo, also met above error.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2017:0199
Have test with below version,still can reproduce this bug: openshift v3.3.1.9 kubernetes v1.3.0+52492b4 etcd 2.3.0+git Here are my steps: 1. Create a buildconfig with http/s proxy set: source: git: httpProxy: http://XXXXXXX:3128 httpsProxy: https://XXXXXX:3128 uri: git://github.com/openshift/ruby-hello-world.git type: Git 2. Build config cannot be saved with below error: spec.source.git.uri: Invalid value: "git://github.com/openshift/ruby-hello-world.git": only http:// and https:// GIT protocols are allowed with HTTP or HTTPS proxy set If I define gitHTTPProxy/gitHTTPSProxy in master-config.yaml, then start build with git repo, also met above error.