Interview Prep/Helm/Schema, Helmfile, Argo CD & Secrets

What is the difference between `helmfile sync` and `helmfile apply`?

IntermediateConceptSchema, Helmfile, Argo CD & Secrets
Answer
  • sync: runs helm upgrade --install for every release, whether or not anything changed.
  • apply: runs helm diff first and upgrades only releases with changes, then deletes releases marked installed: false. Exit status can signal changes (--detailed-exitcode).

apply is what CI should use: quieter history, faster, and the diff is printed for audit. Other useful commands: helmfile template, helmfile lint, helmfile destroy, helmfile -l name=shop apply (label selector).

All Helm questions Roadmap: Helm

More on Schema, Helmfile, Argo CD & Secrets