k8wiz
Flux CD
Easy
Commands

Which Flux CLI command rewrites the Flux manifests in a Git checkout to the latest API versions before an upgrade?

Select your answer:

Show answer and explanation

Answer: flux migrate -f .

Explanation

With -f, flux migrate rewrites the Flux custom resources in the files under that path to the latest API versions and removes spec fields the new version no longer has. Without -f, it migrates the objects stored in the cluster instead. flux install --export only prints the controller manifests.

Read more about Flux CD