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:
parent
1d86f4ee29
commit
2fc8638b13
2 changed files with 7 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
||||||
- (Feature) Object Checksum
|
- (Feature) Object Checksum
|
||||||
- (Bugfix) Use Rendered Spec in case of scheduling compare
|
- (Bugfix) Use Rendered Spec in case of scheduling compare
|
||||||
- (Feature) Parametrize Scheduling Graceful Duration
|
- (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)
|
## [1.2.39](https://github.com/arangodb/kube-arangodb/tree/1.2.39) (2024-03-11)
|
||||||
- (Feature) Extract Scheduler API
|
- (Feature) Extract Scheduler API
|
||||||
|
|
|
@ -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 {
|
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),
|
s := d.GetStatus()
|
||||||
patch.ItemReplace(patch.NewPath("status", "acceptedSpecVersion"), checksum))
|
|
||||||
|
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.
|
// handleArangoDeploymentUpdatedEvent is called when the deployment is updated by the user.
|
||||||
|
|
Loading…
Reference in a new issue