The OpenShift command "oc adm migrate image-references" does not change anything

Solution Verified - Updated -

Issue

  • No changes are applied when issuing oc adm migrate image-references with confirmation:

    $ oc adm migrate image-references registry.example.io/*=myregistry.internal.com/* --include=deploymentconfigs --all-namespaces=false --confirm
    summary: total=1 errors=0 ignored=0 unchanged=1 migrated=0
    
  • Also, no image references have been changed:

    $ oc get dc my-dc -o yaml | grep "image:"
      - image: registry.example.com/my-project/my-image:latest
    

Environment

  • OpenShift Container Platform (OCP) 3.11

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