Skip to content

ArgoCD steps to support verifying no-op apps#1836

Open
scme0 wants to merge 18 commits intomainfrom
scme/MD-1529/no-op-argocd-updates
Open

ArgoCD steps to support verifying no-op apps#1836
scme0 wants to merge 18 commits intomainfrom
scme/MD-1529/no-op-argocd-updates

Conversation

@scme0
Copy link
Collaborator

@scme0 scme0 commented Mar 18, 2026

MD-1529

Updating ArgoCD Steps to track all sources even if no updates are made.

There are 3 cases:

  1. App source is updated: commit sha has value, json patch/manifest is set
  2. App source has tag/manfiest, but already up-to-date: commit sha is empty string, json patch/manifest set
  3. App source is skipped (doesn't have image repo etc.): commit sha is empty string, no json patch

⚠️ Does this change require a corresponding Server Change?
⚠️ If so - please add a "Requires Server Change" label to this PR!

@scme0 scme0 changed the title Scme/md 1529/no op argocd updates ArgoCD steps to support verifying no-op apps Mar 18, 2026
@scme0 scme0 force-pushed the scme/MD-1529/no-op-argocd-updates branch from e2634ec to e5ef4bd Compare March 18, 2026 03:54
// Only values.yaml should be in PatchedFiles — values-extra.yaml had no image match and must not produce a patch entry
using var scope = new AssertionScope();
capturedResults.Should().NotBeNull();
var sourceDetails = capturedResults.Single().UpdatedSourceDetails.First();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated didn't fully make sense here because not all sources are updated.

@scme0 scme0 force-pushed the scme/MD-1529/no-op-argocd-updates branch from 80a757c to 48e8287 Compare March 19, 2026 03:58
@scme0 scme0 marked this pull request as ready for review March 19, 2026 04:01
scme0 and others added 2 commits March 20, 2026 11:53
Resolve conflicts by keeping our Tracked/TrackedSourceDetail renames
and incorporating main's ConvertPathsToPosix path-replacement logic.
Keep our JsonPatch null-filter in AbstractHelmUpdater (path replacement
is now handled in the reporter).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@scme0 scme0 force-pushed the scme/MD-1529/no-op-argocd-updates branch from 4b2c906 to 2eb2511 Compare March 20, 2026 03:42
log.Verbose($"Updated image reference: {change}");
}
}
else if (imageReplacementResult.AlreadyUpToDateImages.Count > 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have a mix of UpdatedImageReferences and AlreadyUpToDateImages ? Then we would need to generate patches for both right?

Follow on question - what happens if the same image is already updated in 1 place but needs updating in another place?

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.

2 participants