Build process not honoring annotation build.openshift.io/source-secret-match-uri-1

Solution Unverified - Updated -

Issue

Build process doesn't use the given source secret based on the annotation when connecting to remote repositories (GIT or HTTPS).

Example:

$ oc new-project myapp-test1
$ oc new-app https://my-git-server.local/openshift/nodejs-ex.git
$ oc create secret generic companyca --from-file=ca.crt=companyca.crt
$ oc annotate secret companyca 'build.openshift.io/source-secret-match-uri-1=https://my-git-server.local/*'
$ oc secrets link builder companyca
$ oc start-build bc/nodejs-ex
$ oc logs -f bc/nodejs-ex
Cloning "https://my-git-server.local/openshift/nodejs-ex.git" ...
error: fatal: unable to access 'https://my-git-server.local/openshift/nodejs-ex.git/': Peer's Certificate issuer is not recognized.

Environment

  • Red Hat OpenShift Container Platform 3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content