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

Use status instead of spec for determining source types #772

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

Sovietaced
Copy link
Contributor

This pull request addresses a regression I noticed in multi source support: #636 (comment)

The old code would rely on detecting the source type based on the status fields which worked for us because application sets are unable to specify such fields. With the new code, the source type would always end up defaulting to the directory type which was incorrect and broke our application sets.

This pull request reverts to the old behavior which should work for all cases hopefully.

Signed-off-by: Jason Parraga <sovietaced@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 67.98%. Comparing base (e4270b8) to head (36db982).

Files Patch % Lines
pkg/argocd/argocd.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #772   +/-   ##
=======================================
  Coverage   67.98%   67.98%           
=======================================
  Files          31       31           
  Lines        3124     3124           
=======================================
  Hits         2124     2124           
  Misses        856      856           
  Partials      144      144           

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

@chengfang chengfang merged commit 2bf4b0a into argoproj-labs:master Jul 16, 2024
10 checks passed
@chengfang
Copy link
Collaborator

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 67.98%. Comparing base (e4270b8) to head (36db982).

Files Patch % Lines
pkg/argocd/argocd.go 0.00% 4 Missing ⚠️
Additional details and impacted files
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here.

The missing tests will be addressed later.

@chengfang
Copy link
Collaborator

@Sovietaced thanks!

sribiere-jellysmack pushed a commit to sribiere-jellysmack/argocd-image-updater that referenced this pull request Aug 13, 2024
…s#772)

Signed-off-by: Jason Parraga <sovietaced@gmail.com>
Co-authored-by: Cheng Fang <cfang@redhat.com>
@Sovietaced Sovietaced deleted the fix-source-detection branch October 15, 2024 03:00
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.

3 participants