Skip to content

[Feature Request] Support for Podman default auth file #906

@perdasilva

Description

@perdasilva

Description of problem:
"opm render" and "opm alpha diff" does not read podman default auth file

Steps to Reproduce:
1.add auth to podman default auth file ${XDG_RUNTIME_DIR}/containers/auth.json

  1. test auth
    [cloud-user@preserve-olm-agent-test ~]$ podman pull quay.io/xzhao/etcd-operator:0.9.4-2196
    Trying to pull quay.io/xzhao/etcd-operator:0.9.4-2196...
    Getting image source signatures
    Copying blob 324b6f8a769d done
    Copying blob f51c45fff73d done
    Copying config f3523f6de0 done
    Writing manifest to image destination
    Storing signatures
    f3523f6de01e782b17c8fc3cf523c3b05c4d0063cc9e73781218eb3c5c1e3e09

  2. run opm render opm alpha diff
    [cloud-user@preserve-olm-agent-test ~]$ opm render quay.io/xzhao/etcd-operator:0.9.4-2196
    2022/01/14 09:53:41 render reference "quay.io/xzhao/etcd-operator:0.9.4-2196": error resolving name : unexpected status code [manifests 0.9.4-2196]: 401 UNAUTHORIZED

[cloud-user@preserve-olm-agent-test ~]$ opm alpha diff quay.io/xzhao/etcd-operator:0.9.4-2196
FATA[0000] error generating diff: error rendering new refs: render reference "quay.io/xzhao/etcd-operator:0.9.4-2196": error resolving name : unexpected status code [manifests 0.9.4-2196]: 401 UNAUTHORIZED

Actual results:
"opm render" and "opm alpha diff" does not read podman default auth file

Expected results:
"opm render" and "opm alpha diff" read podman default auth file to get image.

Additional info:
it is better to add one paramter --authfile to use specific authfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions