Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick charm metadata manifest #148

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

SimonRichardson
Copy link
Member

@SimonRichardson SimonRichardson commented Jul 29, 2024

Cherry-pick of #147 to v7, to allow landing of 3.6 without bringing in #139

We can't land this into v6 as that is for main. So effectively, v6 branch is dead and we should never have cut a release for main against v6. The main branch is unfinished and we should have been just iterating on a hash.

To correctly have RI (referential integrity) when adding a application
in 4.0, we need to know the charm metadata. This essential metadata
is a requirement for things to be able to function correctly. We
don't need actions, config and lxd profiles, they can be supplied
when we upload the actual binary blob.

As this a deeply nested struct, I'm treating it as one amorphous blob,
as apposed to creating and setting each nested entity as it's own
thing.

The version will be the same for the whole of the metadata in it's
first implementation. Although each nested type has it's own schema,
so future iterations can update it independently from each other.
Following on with metadata, this adds the manifest as well to help
send information between the 3.6 model and a 4.0 model.
To ensure that we don't get name collisions on the map, expose all
values. We don't need to optimise this path.
@SimonRichardson SimonRichardson self-assigned this Jul 29, 2024
@SimonRichardson
Copy link
Member Author

/merge

@jujubot jujubot merged commit dca60b8 into juju:v7 Jul 29, 2024
1 of 2 checks passed
@SimonRichardson SimonRichardson deleted the cherry-pick-charm-metadata-manifest branch July 29, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants