claudie
claudie copied to clipboard
Fix autoscaling request to update dsChecksum
Fixes #1340
Updates the updateNodepool function in services/context-box/server/domain/usecases/update_nodepool.go to correctly update the dsChecksum alongside the desiredState during autoscaling requests.
- Adds logic to calculate and update
dsChecksumafter updating the nodepool, ensuring the autoscaler functions as expected by triggering builds when thedesiredStatechanges. - Utilizes the
utils.CalculateChecksumfunction to generate the newdsChecksumand updates it in thepb.Configobject before saving to the database. - Maintains the existing functionality of updating the nodepool count & nodes in both desired and current state, and initiating a build by updating
CsChecksumwith a dummy value.
For more details, open the Copilot Workspace session.