Garbage values are accepted for `--reference-policy` in `oc import-image` without any error

Solution Verified - Updated -

Issue

  • Specifying '--reference-policy' with any other value than 'source' or 'local' results in 'tag.referencePolicy.type: Source' without any warning or error message in oc import-image command.

Environment

  • Red Hat OpenShift Container Platform
    • 4.8, 4.9, 4.10

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