# What does kustomize edit fix do?

Kustomize, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-does-kustomize-edit-fix-do

- A. Formats the kustomization.yaml and sorts all of its keys alphabetically
- B. Rewrites deprecated fields, such as bases, into the fields that replace them
- C. Repairs the references between resources that point at names that don't exist
- D. Updates every remote base to the newest tag published in its repository

**Answer:** Rewrites deprecated fields, such as bases, into the fields that replace them

**Explanation:** It moves bases into resources, imageTags into images, and patchesStrategicMerge and patchesJson6902 into patches. With --vars it also converts vars into replacements. Review the diff before committing it.
