k8wiz
Flux CD
Hard
Testing

In a CI job, 'flux diff kustomization' exits with status 1. What does that mean?

Select your answer:

Show answer and explanation

Answer: It found differences between the local manifests and the cluster

Explanation

flux diff exits with 0 when there are no differences, 1 when it finds some, and above 1 when the diff itself fails. A CI step that fails on any non-zero exit will fail on every pull request that changes something, so treat only codes above 1 as errors.