-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate ec_deployment
#2
Migrate ec_deployment
#2
Conversation
dda2e9d
to
4615f73
Compare
@pascal-hofmann , the schema for |
@dimuon Do you need help with ec_deployment or should I start with porting one of the other resources? |
@pascal-hofmann , I think it makes sense to either start porting other resources or maybe adding acceptance tests for the migration, as recommended by Terraform - https://github.com/hashicorp/terraform-plugin-framework/blob/main/website/docs/plugin/framework/migrating/testing.mdx. |
@pascal-hofmann , I've pushed still unfinished implementation of Also, it looks like changes you've suggested aren't compilable - |
My IDE (goland) deceived me with this. I had problems with Value.String() and assumed this is the same here, because goland found these usages. I should have tested my suggestions locally. Sorry for the confusion. |
96d460c
to
b12b731
Compare
Elasticsearch []*Elasticsearch `tfsdk:"elasticsearch"` | ||
Kibana []*Kibana `tfsdk:"kibana"` | ||
Apm []*Apm `tfsdk:"apm"` | ||
IntegrationsServer []*IntegrationsServer `tfsdk:"integrations_server"` | ||
EnterpriseSearch []*EnterpriseSearch `tfsdk:"enterprise_search"` | ||
Observability []*Observability `tfsdk:"observability"` |
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.
The recommended way to deal with configuration or plan data for now is using types package types in Go structs, e.g.
type myModel struct { ExampleList types.List `tfsdk:"example_list"` }
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.
Yeah, it's a valid concern. It looks like there is also an option to leverage appropriate interfaces.
I'll reconsider these definitions when I complete Create
/Update
.
Thank you for the heads-up.
b1f7df8
to
626143e
Compare
8167a02
to
45a2157
Compare
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.
LGTM apart from minor things. I did not do any real world tests with the new ec_deployment resource though.
Description
ec_deployment
resource migrationLimitations.
State upgrade is not currently implemented.
Few acceptance tests fail. Please see the section below.
Related Issues
Motivation and Context
How Has This Been Tested?
There are still few acceptance tests that fail:
ec_deployment
.TestAccDeploymentExtension_pluginDownload
fails on 0.4.1 with the same error ("Custom plugin is not allowed at your subscription level.")TestAccDeploymentExtension_bundleFile
fails quite often on both 0.4.1 and the branch with the "failed to upload file" error.TestAccDeployment_withExtension
fails quite often with the same error asTestAccDeploymentExtension_bundleFile
.Types of Changes
Readiness Checklist