diff --git a/CHANGELOG.md b/CHANGELOG.md index eab5c5ede..cb711f034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/pkg/deployment/resources/pod_inspector.go b/pkg/deployment/resources/pod_inspector.go index 0eebbde2f..607cd2776 100644 --- a/pkg/deployment/resources/pod_inspector.go +++ b/pkg/deployment/resources/pod_inspector.go @@ -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) }