Skip to content

Conversation

blakepettersson
Copy link
Member

@blakepettersson blakepettersson commented Jun 13, 2024

This is a WIP for OCI support in Argo CD. This is the implementation PR for the proposal in #17564.

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 Toolchain Guide
  • 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.

@blakepettersson blakepettersson requested review from a team as code owners June 13, 2024 23:04
Copy link
Member

@ishitasequeira ishitasequeira left a comment

Choose a reason for hiding this comment

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

@blakepettersson , The overall code on the PR looks good so far. This is an amazing start to the feature. I have not tested stuff yet though.

One thing we might need to look into is how can we reduce the number of calls to OCI repositories like adding some caching for resolve revision and extract calls. Something what we already do for git ls-remote calls. But this can be a future enhancement.

@blakepettersson blakepettersson changed the base branch from oci-integration to master August 22, 2024 11:18
Copy link

codecov bot commented Sep 7, 2024

Codecov Report

Attention: Patch coverage is 52.08071% with 380 lines in your changes missing coverage. Please review.

Project coverage is 59.88%. Comparing base (9472273) to head (14d0b46).
Report is 64 commits behind head on master.

Files with missing lines Patch % Lines
util/oci/client.go 56.85% 118 Missing and 33 partials ⚠️
reposerver/repository/repository.go 45.71% 67 Missing and 9 partials ⚠️
server/application/application.go 27.58% 37 Missing and 5 partials ⚠️
util/argo/argo.go 45.00% 16 Missing and 6 partials ⚠️
server/repository/repository.go 5.55% 17 Missing ⚠️
util/db/repository_secrets.go 48.27% 11 Missing and 4 partials ⚠️
reposerver/cache/cache.go 0.00% 13 Missing ⚠️
controller/state.go 58.62% 8 Missing and 4 partials ⚠️
cmd/argocd/commands/admin/repo.go 0.00% 10 Missing ⚠️
util/io/files/tar.go 55.55% 7 Missing and 1 partial ⚠️
... and 3 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #18646      +/-   ##
==========================================
- Coverage   60.00%   59.88%   -0.12%     
==========================================
  Files         341      342       +1     
  Lines       57818    58539     +721     
==========================================
+ Hits        34694    35058     +364     
- Misses      20344    20632     +288     
- Partials     2780     2849      +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blakepettersson blakepettersson changed the title feat: super duper wip oci support feat: oci support (wip) Sep 9, 2024
@agaudreault agaudreault marked this pull request as draft September 10, 2024 16:39
@blakepettersson blakepettersson changed the title feat: oci support (wip) feat: oci support Sep 19, 2024
@blakepettersson blakepettersson force-pushed the feature/oci branch 2 times, most recently from a439909 to 2e7848c Compare October 2, 2024 20:54
@blakepettersson blakepettersson changed the title feat: oci support feat: oci support (Beta) Oct 3, 2024
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
This is to align with what's been done in argoproj#22712.

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Use the same impl Helm does.

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
@devantler
Copy link

devantler commented May 21, 2025

Hey @blakepettersson, I have been following the progress here with great interest. Really awesome work! It seems the solution is mostly polish at this point. Can you share anything on the expected timeline for this PR? Is it a reasonable expectation that we will see OCI support in ArgoCD within months, or is this still far off?

@blakepettersson
Copy link
Member Author

Hey @devantler!

This is indeed (more or less) done, most of the updates I've been doing is to resolve any conflicts with master. The expectation is that this will land for 3.1, pending a review from some of the maintainers.

Seems like ORAS has changed the error messaging slightly.

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
@crenshaw-dev crenshaw-dev added this to the v3.1 milestone May 28, 2025
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
@blakepettersson blakepettersson merged commit 18c4d9d into argoproj:master Jun 6, 2025
42 of 43 checks passed
@blakepettersson
Copy link
Member Author

This has been MERGED 🎉 🎉 🎉

There are still a few follow-up PRs that needs to be done, but the big bulk of this has been done 🚀

dsuhinin pushed a commit to dsuhinin/argo-cd that referenced this pull request Jun 16, 2025
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
dsuhinin pushed a commit to dsuhinin/argo-cd that referenced this pull request Jun 16, 2025
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
dsuhinin pushed a commit to dsuhinin/argo-cd that referenced this pull request Jun 16, 2025
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
@blakepettersson blakepettersson deleted the feature/oci branch July 14, 2025 17:59
enneitex pushed a commit to enneitex/argo-cd that referenced this pull request Aug 24, 2025
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: enneitex <etienne.divet@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.