1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Bugfix] Change Accepted Spec Propagation (#1642)

This commit is contained in:
Adam Janikowski 2024-04-08 13:33:34 +02:00 committed by GitHub
parent 1d86f4ee29
commit 2fc8638b13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -21,6 +21,7 @@
- (Feature) Object Checksum
- (Bugfix) Use Rendered Spec in case of scheduling compare
- (Feature) Parametrize Scheduling Graceful Duration
- (Bugfix) Change Accepted Spec Propagation
## [1.2.39](https://github.com/arangodb/kube-arangodb/tree/1.2.39) (2024-03-11)
- (Feature) Extract Scheduler API

View file

@ -498,8 +498,12 @@ func (d *Deployment) acceptNewSpec(ctx context.Context, depl *api.ArangoDeployme
}
func (d *Deployment) patchAcceptedSpec(ctx context.Context, spec *api.DeploymentSpec, checksum string) error {
return d.ApplyPatch(ctx, patch.ItemReplace(patch.NewPath("status", "accepted-spec"), spec),
patch.ItemReplace(patch.NewPath("status", "acceptedSpecVersion"), checksum))
s := d.GetStatus()
s.AcceptedSpecVersion = util.NewType(checksum)
s.AcceptedSpec = spec.DeepCopy()
return d.updateCRStatus(ctx, s)
}
// handleArangoDeploymentUpdatedEvent is called when the deployment is updated by the user.