Build pod failing after upgrading cluster from v4.5 to v4.6

Solution Verified - Updated -

Issue

  • Before upgrade, the BuildConfig setting was able to clone source code from a private GitLab.

  • But after upgrading the cluster, it was throwing the message:

error: failed to fetch requested repository "http://xxx/gitlab/project/xxx" with provided credentials
  • In the pod description the below message was seen:
  State:      Terminated
      Reason:   Error
      Message:  Cloning "http://apps.example.com/code.git" ...
error: failed to fetch requested repository "http://apps.example.com/code.git" with provided credentials

Environment

  • Red Hat OpenShift Container Platform [OCP]
  • Red Hat OpenShift Dedicated [OSD]

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