Skip to content

Conversation

@ppapapetrou76
Copy link
Contributor

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Title of the PR
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

@ppapapetrou76 ppapapetrou76 requested review from a team as code owners December 9, 2025 15:50
@bunnyshell
Copy link

bunnyshell bot commented Dec 9, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Copy link
Member

@blakepettersson blakepettersson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That comment applies if you use a "helm classic" repository credential. Private repositories are fully supported with OCI (if you use a credential of type oci)

@ppapapetrou76
Copy link
Contributor Author

That comment applies if you use a "helm classic" repository credential. Private repositories are fully supported with OCI (if you use a credential of type oci)

Thanks @blakepettersson , how should I phrase it then? 🤔

@blakepettersson
Copy link
Member

blakepettersson commented Dec 10, 2025

@ppapapetrou76 hmm I could have sworn that there was a part for OCI repos in the docs but it seems like there isn't 🤔

There is something in the CLI docs, but that's not too helpful...

Anyways using the example in the OCI docs, if there is a need to have credentials for it, a repository credential of type *oci needs to be created.

  # Add a private HTTPS OCI repository named 'stable'
  argocd repo add oci://registry-1.docker.io/bitnamicharts/nginx --type oci --name stable --username test --password test 

This is a bit confusing, since in the case of Helm repositories there is another (incompatible) way to use OCI credentials with Helm (which is the one you documented)

  # Add a private HTTPS OCI Helm repository named 'stable'
  argocd repo add registry-1.docker.io/bitnamicharts/nginx --type helm --name stable --username test --password test --enable-oci

The confusing part here is that helm credentials are not compatible with oci credentials and vice versa, and the only way those repo types are distinguished are via their repoURL prefixes; if a repoURL is prefixed with oci:// the repo-server will lookup (only) OCI repository credentials and if it's not prefixed with a protocol it the repo-server will (only) lookup Helm OCI credentials.

IMO I think the Helm OCI credential type should be deprecated and removed in the next major release, but that's a topic for another day.

Signed-off-by: Patroklos Papapetrou <[email protected]>
@ppapapetrou76
Copy link
Contributor Author

thanks @blakepettersson
I updated the docs according to my understanding 😄
Let me know if I need to add / remove / change anything that doesn't make sense

Copy link
Member

@blakepettersson blakepettersson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, just a minor comment

Signed-off-by: Patroklos Papapetrou <[email protected]>
@blakepettersson blakepettersson merged commit d7954f0 into argoproj:master Dec 15, 2025
24 checks passed
agaudreault pushed a commit to agaudreault/argo-cd that referenced this pull request Dec 16, 2025
Signed-off-by: Patroklos Papapetrou <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants