-
Notifications
You must be signed in to change notification settings - Fork 89
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
Utilise the migrate template API when applying changes to the deployment template id #547
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All LGTM mate, can't help out with any code suggestions but I def learned a bit while workin through this 👍
6257053
to
4b324d7
Compare
@@ -9,7 +9,16 @@ resource "ec_deployment" "defaults" { | |||
version = data.ec_stack.latest.version | |||
deployment_template_id = "%s" | |||
|
|||
elasticsearch {} | |||
elasticsearch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to modify test checks instead? It looks like the acceptance test (TestAccDeployment_basic_defaults_hw
) checks updating configuration once the template is changed.
Also shall the acceptance test work as expected without these explicit changes to the sizes? The new template (aws-hot-warm-v2
) has size 4g for both hot_content
and warm
tiers so I guess once the template attribute is set to aws-hot-warm-v2
, the tier sizes should change accordingly even without these explicit settings in the configuration.
4e3580d
to
e4282ca
Compare
e4282ca
to
a189ad6
Compare
…ent template id (elastic#547) * Utilise the migrate template API when applying changes to the deployment template id * Add changelog * Fix acceptance tests * Reset the instance_configuration_id so changes from the migration API are picked up
* upstream/master: (28 commits) Update CHANGELOG.md and NOTICE Fix incorrect private link data for Azure eastus (#583) Update CHANGELOG.md and NOTICE Fix typo in GCP PSC datasource documentation (#571) Update CHANGELOG.md and NOTICE fix(deps): update module github.com/go-openapi/runtime to v0.25.0 (#564) Update CHANGELOG.md and NOTICE Utilise the migrate template API when applying changes to the deployment template id (#547) Update CHANGELOG.md and NOTICE fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.24.1 (#559) Update CHANGELOG.md and NOTICE docs: Add GCP PSC to Traffic Filter argument reference for type (#557) Update CHANGELOG.md and NOTICE chore(deps): update peterjgrainger/action-create-branch action to v2.3.0 (#560) Update CHANGELOG.md and NOTICE fix: remove strategy DiffSuppressFunc (#539) Update CHANGELOG.md and NOTICE fix(deps): update module github.com/stretchr/testify to v1.8.1 (#554) Update CHANGELOG.md and NOTICE Revert "Run acceptance tests in CI against 1.2.9 (#542)" (#553) ...
Description
Use the migrate template API to build the base update request when an existing deployment changes.
deployment_template_id
,Related Issues
Fixes #487
Fixes #556
Motivation and Context
This API is purpose built to update deployment options to be compatible with a different template and simplifies the process for migrating deployments between hardware types.
How Has This Been Tested?
Manually, acceptance test, unit tests
Types of Changes
Readiness Checklist