Skip to content

Commit 0c2d5e8

Browse files
authored
[Bugfix] Prevent UpToDate Condition changes during Action processing (#1883)
1 parent d443262 commit 0c2d5e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
44
- (Maintenance) Optimize go.mod
5+
- (Bugfix) Prevent UpToDate Condition changes during Action processing
56

67
## [1.2.48](https://github.com/arangodb/kube-arangodb/tree/1.2.48) (2025-05-08)
78
- (Maintenance) Extend Documentation

pkg/deployment/deployment_inspector.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// DISCLAIMER
33
//
4-
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2016-2025 ArangoDB GmbH, Cologne, Germany
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -452,6 +452,10 @@ func (d *Deployment) sendCIUpdate() {
452452
}
453453

454454
func (d *Deployment) isUpToDateStatus(mode api.DeploymentMode, status api.DeploymentStatus) (upToDate bool, reason string) {
455+
if !status.IsPlanEmpty() || !status.Conditions.IsTrue(api.ConditionTypeUpToDate) {
456+
return false, "Plan is not empty"
457+
}
458+
455459
if status.NonInternalActions() > 0 {
456460
return false, "Plan is not empty"
457461
}

0 commit comments

Comments
 (0)