feat: implement model constraint export #18758
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduced a new model export operation for setting the model's constraints on export. The decision was made to seperate the export operations of the model domain into seperate entities so they can be easily tested.
This PR is a bit wishful at the moment as we don't have a reasonable test plan that can assert this work's besides the unit tests included. To merge this PR we need to:
Checklist
[ ] Integration tests, with comments saying what you're testing[ ] doc.go added or updated in changed packagesQA steps
Test 1
Confirm the unit tests in this PR work
Test 2
This test will not work until the above mentioned items have landed.
1024M
juju model-constraints
on the migrated model and confirm the memory constraint is set and applied.Documentation changes
N/A
Links
Jira card: JUJU-7263