Course outline

Argo CD / Desired state and evidence foundations / Lesson 7

Choose and verify a Git tracking revision

Compare branch, tag and commit tracking for an Argo CD Application and record its resolved source identity.

About 3 min readContent reviewed
On this page

Lesson goals

  • Distinguish moving references from a pinned commit.
  • Record repository, revision and render inputs.
  • Explain why source identity alone does not prove workload health.

Define the source contract

An Argo CD Application names a repository, path and target revision used to generate desired manifests. A branch can move as commits are added; a commit identifier pins a particular revision. Tags are references whose governance matters. Choose a strategy that matches the release and review process. The records here are synthetic and no repository or cluster is contacted.

Track a moving reference

This fictional branch can resolve to a different commit later. Record its resolved commit during review, along with repository, path, destination and generation inputs. Branch movement is expected, but approval tied only to the name can become stale.

yaml Synthetic branch review
repository: synthetic-repository
tracking_kind: branch
tracking_reference: training
resolved_commit: recorded-at-review

This record describes an intended tracking strategy, not an Application manifest.

Pin and inspect overrides

The second record describes a commit-pinned source. A commit fixes the Git revision but does not by itself freeze every other generation input: Application parameters, values and other sources may still affect the output. Record them with the commit and review changes to the Application itself. A tag may also be moved by an authorized repository actor, so verify the repositoryโ€™s tag policy.

yaml Synthetic pinned review
repository: synthetic-repository
tracking_kind: commit
tracking_reference: reviewed-commit
parameter_overrides: separately-reviewed

The record separates the Git revision from other rendering inputs; it is not a valid commit reference.

Avoid ambiguous names

A branch and tag can have the same short name. Ambiguous references can resolve unexpectedly or create reconciliation confusion. Use the documented unambiguous reference form where appropriate and compare the resolved commit with the reviewed one. Protect repository access and review rights independently; a precise identifier does not authenticate an untrusted change.

Verify a release in a lab

In an isolated authorized environment, render a synthetic Application from a reviewed source and compare the resolved revision and complete inputs with the approval record. Test a changed branch or mismatched commit as a negative case. Inspect the final manifests and workload health separately. Successful source resolution alone does not prove a sync occurred or that the application is healthy.

Common errors and fixes

A branch name is treated as an immutable revision

Why it happens
A branch can advance to another commit.
How to fix it
Record and review the resolved commit.
Prevent it next time
Tie approval to complete source identity.

A pinned commit is assumed to freeze every input

Why it happens
Application overrides or other sources can still change output.
How to fix it
Review all generation inputs and Application changes.
Prevent it next time
Record the complete render contract.

A short reference name is assumed unambiguous

Why it happens
A tag and branch may share the name.
How to fix it
Use a documented unambiguous reference and verify resolution.
Prevent it next time
Avoid overlapping naming conventions.

2 practice exercises

1. A branch label is unchanged but its resolved commit differs from the approved record. What next?

Show worked solution

Stop and review the new commit and complete render inputs before proceeding.

2. The commit is pinned but an Application value override changes. Can the manifest change?

Show worked solution

Yes. The override is a separate input; render and review the final manifests under the new configuration.

Key takeaways

  • Branch, tag and commit tracking have different change behavior.
  • Record the resolved revision and all rendering inputs.
  • Source, sync and health require separate evidence.

Official references