-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: (pkg/oci/auth) Importing the auth package causes "kubeconfig
flag redefined" error
#645
Comments
The flag is defined in an |
We just had an interesting discussion about this at Bug Scrub, It looks like the controller-runtime are aware of this issue and I might have found this by clicking through @makkes links. The working theory is that by importing The redefinition is between controller-runtime and kyverno, it's a fun coincidence that fluxcd/pkg causes this, but the indirect dependency explanation appears to be the correct one. |
controller-runtime registers the flag in the initialization phase using an |
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 sayingpanic: /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?
The text was updated successfully, but these errors were encountered: