elastic / cloud-sdk-go

Apache License 2.0
21 stars 46 forks source link

Keep all Elasticsearch topologies when building update request. #416

Closed gigerdo closed 1 year ago

gigerdo commented 1 year ago

The response from the API does already contain all topologies, but they were removed when building the update request. Now we simply keep all elements as the API returns them.

This is mainly needed when autoscaling is enabled. In that case the update request must contain all existing topology elements to validate correctly.

Description

Related Issues

Fixes an ecctl issue: https://github.com/elastic/ecctl/issues/596

Motivation and Context

How Has This Been Tested?

Types of Changes

Readiness Checklist

gigerdo commented 1 year ago

Had to force push my commits to sign them.

henrikno commented 1 year ago

This also fixes https://github.com/elastic/cloud-sdk-go/issues/366. Thanks!