Skip to content

Commit d92f236

Browse files
authored
[Bugfix] Fix checksum of accepted spec (#1132)
1 parent b9a7673 commit d92f236

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- (Bugfix) Change SyncWorker Affinity to Soft
1010
- (Feature) Add HostAliases for Sync
1111
- (Bugfix) Always stop Sync if disabled
12+
- (Bugfix) Fix checksum of accepted spec
1213

1314
## [1.2.17](https://github.com/arangodb/kube-arangodb/tree/1.2.17) (2022-09-22)
1415
- (Feature) Add new field to DeploymentReplicationStatus with details on DC2DC sync status=

pkg/deployment/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func (d *Deployment) acceptNewSpec(ctx context.Context, depl *api.ArangoDeployme
445445
return false, false, err
446446
}
447447

448-
if v := depl.Status.AcceptedSpecVersion; acceptedChecksum == checksum && (v != nil && *v == acceptedChecksum) {
448+
if v := depl.Status.AcceptedSpecVersion; acceptedChecksum == checksum && (v != nil && *v == origChecksum) {
449449
return true, false, nil
450450
}
451451

pkg/deployment/features/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var deploymentSpecDefaultsRestore = &feature{
3030
version: "3.6.0",
3131
enterpriseRequired: false,
3232
enabledByDefault: true,
33-
hidden: true,
33+
hidden: false,
3434
}
3535

3636
func DeploymentSpecDefaultsRestore() Feature {

0 commit comments

Comments
 (0)