projectsyn / commodore

Commodore provides opinionated tenant-aware management of Kapitan inventories and templates. Commodore uses Kapitan for the heavy lifting of rendering templates and resolving a hierachical configuration structure.
https://syn.tools/commodore/
BSD 3-Clause "New" or "Revised" License
46 stars 8 forks source link

Ensure `component update` can update components without automerge settings #987

Closed simu closed 2 months ago

simu commented 2 months ago

component update fails with Commodore ==1.22.0 for components that were generated with a template version that didn't include the automerge options. For example, we can no longer onboard components to the template sync if they were generated without automerge options now that the template sync uses Commodore 1.22.0.

This PR ensures that component update will use the default values for the automerge options if they're not present in the component's .cruft.json.

Follow-up to #974 #981 #982 #983 #984

See https://github.com/projectsyn/commodore-component-template/actions/runs/9518725022/job/26240261257 for an example failure.

Checklist