mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Improvement] Print assigned node name to log when pod is scheduled - GT-213 (#1444)
This commit is contained in:
parent
d1faaa3dfa
commit
781d240088
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
# Change Log
|
||||
|
||||
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
|
||||
- (Maintenance) Update go-driver to v1.6.0, update IsNotFound() checks
|
||||
- (Improvement) Print assigned node name to log and condition message when pod is scheduled
|
||||
|
||||
## [1.2.34](https://github.com/arangodb/kube-arangodb/tree/1.2.34) (2023-10-16
|
||||
- (Bugfix) Fix make manifests-crd-file command
|
||||
|
@ -16,7 +18,6 @@
|
|||
- (Maintenance) Make scale_down_candidate annotation obsolete
|
||||
- (Bugfix) Fix ResignJob ID propagation
|
||||
- (Bugfix) Allow shards with RF1 in EnforcedResignLeadership action
|
||||
- (Maintenance) Update go-driver to v1.6.0, update IsNotFound() checks
|
||||
|
||||
## [1.2.33](https://github.com/arangodb/kube-arangodb/tree/1.2.33) (2023-09-27)
|
||||
- (Maintenance) Bump golang.org/x/net to v0.13.0
|
||||
|
|
|
@ -380,7 +380,9 @@ func (r *Resources) InspectPods(ctx context.Context, cachedStatus inspectorInter
|
|||
}
|
||||
|
||||
if k8sutil.IsPodScheduled(pod) {
|
||||
if memberStatus.Conditions.Update(api.ConditionTypeScheduled, true, "Pod is scheduled", "") {
|
||||
msg := fmt.Sprintf("Assigned to node %s", pod.Spec.NodeName)
|
||||
if memberStatus.Conditions.Update(api.ConditionTypeScheduled, true, "Pod is scheduled", msg) {
|
||||
log.Str("pod-name", pod.GetName()).Str("node", pod.Spec.NodeName).Info("Member has been scheduled")
|
||||
updateMemberStatusNeeded = true
|
||||
nextInterval = nextInterval.ReduceTo(recheckSoonPodInspectorInterval)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue