Adding image repository in image config generates "Unknown key" error in RHOCP 4

Solution Verified - Updated -

Issue

  • Adding an image repository with three or more path segments under "allowedRegistries" list generates "Unknown Key" error while pulling images.

~~~
Failed to pull image "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:d8ff152b933bbbdb7acd409b2bb02dd35e8bba69723367db6af16a1b6ec8a395": rpc error: code = Unknown desc = invalid policy in "/etc/containers/policy.json": Unknown key "registry.gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/gitlab-runner-operator"
~~~~

Environment

  • Red Hat OpenShift Container Platform 4

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