Use DeployFromRepository when possible. #409
Merged
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.
Description
If the controller has implemented the Application facade of version 19 or higher, use DeployFromRepository method to deploy a charm. This method shortcuts most of the deploy business logic in the client and allows the controller to handle it all.
To handle shared input manipulation between the 2 methods, created a new input struct with a parse() method.
Type of change
Environment
Juju controller version: 2.9.47, 3.3.1
Terraform version: any
QA steps
Run the following plan against a 2.9.47 controller and against a 3.3.1 controller with debug enabled,
export TF_LOG_PROVIDER=TRACE ; export TF_LOG_PATH=./terraform.log
.Against 2.9.47, you should find the debug line "Calling Deploy". Against 3.3.1, you should find the debug line "Calling DeployFromRepository".
Also run
Additional notes
JUJU-5429