-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for passing charmcraft.yaml as metadata #156
Comments
Support for the unified charmcraft.yaml was added in #91, but only for the autoloading where it finds the file (and under the hood it's basically doing what you describe in the workaround section). I can see that it would be convenient to just throw an entire YAML file to the metadata argument and have Scenario figure it out. |
should we consider in 7.0 to have the unified charmcraft as default?
and offer a helper A less hardline approach would be to keep the Context signature as is, but change the semantics of the 'meta' argument to also accept 'unified charmcraft yaml'. |
+1
Yeah, and the names are then confusing I think: even though it's "meta" and not "metadata", having a set of (meta, config, actions) feels very much like you are expected to not have the config/actions in the first arg. |
Moved to canonical/operator#1424 |
Description
Charmcraft.yaml (replacing metadata.yaml) now removes the need to have different files for metadata, config, and actions. When providing metadata in the charmcraft.yaml format, we get a
InconsistentScenarioError
error because the config option is not recognized.Logs
Desired state
Workaround
The text was updated successfully, but these errors were encountered: