Skip to content

Commit 1826729

Browse files
authored
[Feature] Allow to continue if ResignServer job is gone (#1824)
1 parent 0a77a17 commit 1826729

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- (Feature) Agency DBServer Discovery
1313
- (Bugfix) Fix Manifests
1414
- (Bugfix) Agency Cache Reload
15+
- (Feature) Allow to continue if ResignServer job is gone
1516

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

pkg/deployment/reconcile/action_enforce_resign_leadership.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ func (a *actionEnforceResignLeadership) CheckProgress(ctx context.Context) (bool
115115
a.log.Info("Job finished")
116116
// Remove key
117117
a.actionCtx.Add(resignLeadershipJobID, "N/A", true)
118+
case state.JobPhasePending, state.JobPhaseToDo:
119+
// Job not yet completed
120+
return false, false, nil
118121
case state.JobPhaseUnknown:
119-
a.log.Str("status", string(jobStatus)).Error("Resign server job unknown status")
122+
a.actionCtx.Add(resignLeadershipJobID, "N/A", true)
123+
a.log.Str("status", string(jobStatus)).Error("Resign server job unknown status, retry")
120124
return false, false, nil
121125
default:
122126
return false, false, nil

0 commit comments

Comments
 (0)