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.
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.
[x] Keep pull requests small so they can be easily reviewed.
[x] Update tests.
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency, internal
as they show up in the changelog
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
bug
,enhancement
,documentation
,change
,breaking
,dependency
,internal
as they show up in the changelog