claudie icon indicating copy to clipboard operation
claudie copied to clipboard

Fix autoscaling request to update dsChecksum

Open Danielss89 opened this issue 1 year ago • 0 comments

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 dsChecksum after updating the nodepool, ensuring the autoscaler functions as expected by triggering builds when the desiredState changes.
  • Utilizes the utils.CalculateChecksum function to generate the new dsChecksum and updates it in the pb.Config object 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 CsChecksum with a dummy value.

For more details, open the Copilot Workspace session.

Danielss89 avatar May 15 '24 14:05 Danielss89