Skip to content

Conversation

Aaron-9900
Copy link
Contributor

@Aaron-9900 Aaron-9900 commented Nov 26, 2024

Closes issue #20896

Docs: #20896 docs | Add notifications examples section
GitOps: feat: return images from resources when sync occurs


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.
  • 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).

Copy link

bunnyshell bot commented Nov 26, 2024

❗ Preview Environment undeploy from Bunnyshell failed

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to try again to remove the environment

@Aaron-9900 Aaron-9900 changed the title feat: Add images to sync result feat: Add images to resources in sync result Nov 26, 2024
@andrii-korotkov-verkada
Copy link
Contributor

The error is

#41 86.71 controller/sync.go:450:19: res.Images undefined (type "github.com/argoproj/gitops-engine/pkg/sync/common".ResourceSyncResult has no field or method Images)

@andrii-korotkov-verkada
Copy link
Contributor

You have to add replace in go.mod for gitops-engine pointing to your fork and branch and then run go mod tidy.

@Aaron-9900
Copy link
Contributor Author

You have to add replace in go.mod for gitops-engine pointing to your fork and branch and then run go mod tidy.

Yeah for testing locally that works, but I'd rather not commit that

@Aaron-9900 Aaron-9900 changed the title feat: Add images to resources in sync result feat: Add images to resources in sync result #20896 Dec 12, 2024
@Aaron-9900 Aaron-9900 force-pushed the feat/add-images-to-sync-result branch from fbbe33f to 7c0c69b Compare February 19, 2025 10:45
@@ -184,7 +184,7 @@ func ResourceResultIs(result ResourceResult) Expectation {
return func(c *Consequences) (state, string) {
results := c.app().Status.OperationState.SyncResult.Resources
for _, res := range results {
if *res == result {
if reflect.DeepEqual(*res, result) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Necessary because now we have an array in the result

@Aaron-9900 Aaron-9900 force-pushed the feat/add-images-to-sync-result branch 2 times, most recently from 6ac6a18 to b00d56d Compare February 20, 2025 10:20
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.98%. Comparing base (10abed7) to head (17a01c1).
⚠️ Report is 417 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20954      +/-   ##
==========================================
- Coverage   60.01%   59.98%   -0.04%     
==========================================
  Files         343      343              
  Lines       57888    57890       +2     
==========================================
- Hits        34744    34726      -18     
- Misses      20358    20381      +23     
+ Partials     2786     2783       -3     

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

@Aaron-9900 Aaron-9900 force-pushed the feat/add-images-to-sync-result branch 2 times, most recently from 218ca88 to 1b82a2f Compare March 4, 2025 16:47
@Aaron-9900 Aaron-9900 marked this pull request as ready for review March 4, 2025 20:19
@Aaron-9900 Aaron-9900 requested a review from a team as a code owner March 4, 2025 20:19
@Aaron-9900 Aaron-9900 force-pushed the feat/add-images-to-sync-result branch 3 times, most recently from af81365 to d754884 Compare March 10, 2025 08:21
@Aaron-9900 Aaron-9900 requested a review from rumstead March 25, 2025 15:28
@Aaron-9900 Aaron-9900 force-pushed the feat/add-images-to-sync-result branch 3 times, most recently from c9f19d8 to c605834 Compare March 27, 2025 14:54
@Aaron-9900 Aaron-9900 force-pushed the feat/add-images-to-sync-result branch from c605834 to 584235f Compare May 6, 2025 09:30
Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@users.noreply.github.com>
Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@users.noreply.github.com>
Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@users.noreply.github.com>
@Aaron-9900 Aaron-9900 force-pushed the feat/add-images-to-sync-result branch from 06b31f4 to 7fcabf5 Compare May 27, 2025 18:58
@crenshaw-dev crenshaw-dev enabled auto-merge (squash) May 27, 2025 19:06
Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@users.noreply.github.com>
@crenshaw-dev crenshaw-dev merged commit 18ce5c2 into argoproj:master May 27, 2025
27 checks passed
chansuke pushed a commit to chansuke/argo-cd that referenced this pull request Jun 4, 2025
…#20954)

Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@users.noreply.github.com>
dsuhinin pushed a commit to dsuhinin/argo-cd that referenced this pull request Jun 16, 2025
…#20954)

Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@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
…#20954)

Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@users.noreply.github.com>
Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
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.

4 participants