-
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
Introduce integrations_server
resource
#425
Conversation
e7e731d
to
51ed9b9
Compare
…-support # Conflicts: # go.sum
3e9dada
to
4f8ad72
Compare
@mieciu just checking in on the status of this |
Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
Before we merge this in, we should release a new version of the |
Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
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.
Nothing major, I've pushed a couple of fixes related to the failing tests. Before we can merge this, we should also update the docs/
and add the following:
- Example of integrations server in
ec_deployment
, when to use it and how it differs to theapm
resource. - Update the
ec_deployment
resource adding the new attributes and fields. - Update the
ec_deployment
data source adding the new attributes.
Last, we should add an acceptance test case which creates and updates the new integrations_server
, for example:
- Create a 1g
integrations_server
deployment. - Update to 2g.
Co-authored-by: Marc Lopez Rubio <marc5.12@outlook.com>
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.
It seems that you removed all documentation related to the apm
resource, I would prefer if we left most of the apm
references as is and made clear that from 8.0.0
onwards users should use the integrations_server
instead of apm
.
Otherwise, this change will lead to integrations_server
being used for all versions, which isn't supported and isn't the intended use case.
Could you also write new acceptance tests to cover the integrations_server
resource? We're missing those and would be great to have. I believe we should create two acceptance test cases:
- Create a deployment with an
integrations_server
from scratch (usinglatest
).
1.1. Update some settings - Create an APM Deployment with an
apm
resource (using7.17.*
)
2.1. Update the deployment to8.0.0
.
2.2. Once updated, use theintegrations_server
resource instead.
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.
We should ideally also add some unit tests for all the flattening and expanding of the integrations server like we do for all the other resources
Co-authored-by: Marc Lopez Rubio <marc5.12@outlook.com>
Co-authored-by: Marc Lopez Rubio <marc5.12@outlook.com>
…o integrations-server-support
@marclop I believe all your concerns have been addressed, please give this another look 🙇 |
all your concerns have been addressed
looks completely unrelated to my changes, perhaps that's a flakiness? |
That seems to be the case, I've opened #444 which we should merge and investigate why the test fails separately. |
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.
Looks good! Thank you for all the changes and the added tests.
Thanks @mieciu for making the terraform provider work with the new integrations_server! |
I forgot to mention that we should add a changelog entry in |
This pull request adds a new deployment resource support -
integrations_server
introduced in Elastic stack version8.0.0
.Description
Users can use the new
integrations_server
resource in their*.tf
files just like any other stateless resources (e.g.kibana
,enterprise_search
).Example:
How Has This Been Tested?
Tested manually, unit/acceptance tests have been added as well.
Types of Changes
Readiness Checklist