Skip to content
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

Helm OCI repository is in 'Failed' condition, if it has been created with k8s secret. #21789

Open
3 tasks done
kvendingoldo opened this issue Feb 5, 2025 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working component:oci-integration version:2.13 Latest confirmed affected version is 2.13

Comments

@kvendingoldo
Copy link

kvendingoldo commented Feb 5, 2025

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

The OCI repository connection failed when I added it for the first time via Kubernetes Secrets. It will not be updated to the "Successful" state unless I manually create it and then re-create it using secret.
I checked my secret and the secret that ArgoCD generated automatically after adding the repository via the UI. The Base64 values are identical.

To Reproduce

  1. Create OCI Helm repository via K8S secret
  2. Check that the repository status is 'Failed'
  3. Delete K8S secret
  4. Create repository with the same options manually via ArgoCD UI
  5. Check that the repository status is 'Successful'
  6. Delete repository via UI
  7. Re-apply K8S secret
  8. Check that the repository status is 'Successful'

Expected behavior

  1. Repository status should be Successful, if I add repository via K8S Secret without any additional operations

Screenshots

Version

v2.13.1+af54ef8

Logs

time="2025-02-05T14:39:15Z" level=info msg=Trace args="[helm registry login XXYY.com --username ****** --password ******" dir=/tmp/helm1192506191 operation_name="exec helm" time_ms=232.556344
time="2025-02-05T14:39:15Z" level=error msg="finished unary call with code Unknown" error="error testing repository connectivity: error logging into OCI registry: failed to login to registry: failed to get command args to log: `helm registry login XXYY.com --username ****** --password ******` failed exit status 1: WARNING: Using --password ****** the CLI is insecure. Use --password-stdin.\nError: Get \"https://XXYY.com/v2/\": unauthorized:" grpc.code=Unknown grpc.method=TestRepository grpc.service=repository.RepoServerService grpc.start_time="2025-02-05T14:39:14Z" grpc.time_ms=232.933 span.kind=server system=grpc

@kvendingoldo kvendingoldo added the bug Something isn't working label Feb 5, 2025
@nitishfy nitishfy added the version:2.13 Latest confirmed affected version is 2.13 label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:oci-integration version:2.13 Latest confirmed affected version is 2.13
Projects
None yet
Development

No branches or pull requests

3 participants