Skip to content

Commit 136a00b

Browse files
authored
[Bugfix] Fix Condition name (#1819)
1 parent 9a3ab61 commit 136a00b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- (Maintenance) Bump Go to 1.23.6, Kubernetes to 1.31.5 and other dependencies
88
- (Feature) (Platform) Inventory Cluster details
99
- (Feature) (Platform) CLI
10+
- (Bugfix) Fix Condition name
1011

1112
## [1.2.44](https://github.com/arangodb/kube-arangodb/tree/1.2.44) (2025-02-03)
1213
- (Maintenance) Kubernetes 1.31.1 libraries

pkg/deployment/resources/pod_inspector.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ func (r *Resources) InspectPods(ctx context.Context, cachedStatus inspectorInter
481481
}
482482
}
483483
if c.Leader == 0 {
484-
if memberStatus.Conditions.Update(api.ConditionTypeDBServerWithData, false, "No Shard Leaders Assigned", "No Shard Leaders Assigned") {
484+
if memberStatus.Conditions.Update(api.ConditionTypeDBServerWithDataLeader, false, "No Shard Leaders Assigned", "No Shard Leaders Assigned") {
485485
updateMemberStatusNeeded = true
486486
}
487487
} else {
488-
if memberStatus.Conditions.Update(api.ConditionTypeDBServerWithData, true, "Shard Leaders Assigned", fmt.Sprintf("Server with %d shard leaders assigned", c.Leader)) {
488+
if memberStatus.Conditions.Update(api.ConditionTypeDBServerWithDataLeader, true, "Shard Leaders Assigned", fmt.Sprintf("Server with %d shard leaders assigned", c.Leader)) {
489489
updateMemberStatusNeeded = true
490490
}
491491
}

0 commit comments

Comments
 (0)