Skip to content

bug: (pkg/oci/auth) Importing the auth package causes "kubeconfig flag redefined" error #645

@vishal-chdhry

Description

@vishal-chdhry

Background

We at Kyverno were facing issues with the ACR keychain where there was a 30-second timeout when using an image from Azure ACR in a non-AKS cluster. To work around that problem we decided to use the auth pkg in this repo to create custom keychains. The implementation works fine, but there is a problem.

PR: kyverno/kyverno#7908

Description

After importing github.com/fluxcd/pkg/oci v0.30.0 in kyverno, we started getting an error when running the pod saying panic: /ko-app/kyverno flag redefined: kubeconfig . fluxcd/pkg/oci is the only new direct import in the PR. So I believe that is whats causing the issue here.

Any suggestion on how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions