Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed wrong assignment of targetClusterName
  • Loading branch information
Jaroslaw Cwiklik committed Aug 25, 2023
commit 7d97f3eb977362172690af4937b4b52fc471a5f5
4 changes: 3 additions & 1 deletion pkg/controller/queuejob/queuejob_controller_ex.go
Original file line number Diff line number Diff line change
Expand Up @@ -2237,7 +2237,9 @@ func (cc *XController) manageQueueJob(qj *arbv1.AppWrapper, podPhaseChanges bool
if agentId, ok := cc.dispatchMap[queuejobKey]; ok {
klog.V(10).Infof("[Dispatcher Controller] Dispatched AppWrapper %s to Agent ID: %s.", qj.Name, agentId)
if cc.serverOption.ExternalDispatch {
qj.Status.TargetClusterName = agentId
values := strings.Split(agentId,"/")
klog.V(10).Infof("[Dispatcher Controller] Dispatching AppWrapper %s to Agent ID: %s Through External Dispatcher.", qj.Name, values[len(values)-1])
qj.Status.TargetClusterName = values[len(values)-1] //agentId
} else {
cc.agentMap[agentId].CreateJob(qj)
}
Expand Down