Ravindra BagaleCourses & study guides मराठी

Chapter 96: Flux GitOps — Sources, Reconciliation and Safe Local Practice

DevOps

96.11 Image automation without hidden Git writes

Fictional teaching story. At a fictional Jalgaon studio, Saira and Liam ask who is permitted to change a deployed image reference after a new build arrives.

Why

Image scanning, choosing a candidate and writing configuration are three separate responsibilities.

What

Explain the automation chain without guessing API versions or enabling it.

How

Image automation without hidden Git writes
Original classroom diagram: Image automation without hidden Git writes

Reflecting and selecting images

ImageRepository describes image metadata scanning for image-reflector-controller. ImagePolicy describes selection from that metadata. A tag is a human-readable image label; a digest identifies image content.

Immediate practice example

  1. Read the example from top to bottom. Do not send it to a real cluster.
Available fictional tags: demo-1, demo-2
Reviewed selection intent: candidate demo-2
Current desired reference: demo-1
  1. Read the expected result.

Illustrative output: not executed by Flux, kubectl, Helm or Kubernetes.

Finding a candidate does not by itself update a workload.
  1. Understand each line in plain English.

The first line is an invented scan result. The second is a teaching selection, not a claim that these demo tags satisfy a particular semantic-version policy. The third shows a separate desired manifest reference. Tags can move; pinning content by digest and verifying supply-chain evidence are separate reviewed controls.

ImageUpdateAutomation can commit changes

ImageUpdateAutomation tells image-automation-controller how to update marked YAML fields and commit changes to Git. This is a write capability, not merely a read-only scan.

Immediate practice example

  1. Read the example from top to bottom. Do not send it to a real cluster.
Reflect metadata -> select candidate -> change marked YAML -> commit Git change
Review boundary: allowed repository, branch, path and update fields
  1. Read the expected result.

Illustrative output: not executed by Flux, kubectl, Helm or Kubernetes.

Actual image automation can write Git; this chapter writes no Git commits.
  1. Understand each line in plain English.

The arrows describe the documented controller roles. We intentionally omit API versions, policy selectors and update-marker syntax because those require separate installed-version review. Do not assume image automation is enabled simply because core Flux reconciliation exists. Repository write permissions and promotion approvals require explicit operational design.

Ravindra Bagale's Tip

An image candidate is not an approved production promotion.

Did you understand? Let us try it once more.