Skip to content

Commit

Permalink
Do not default the queue-name for jobs with kueue managed owners (#3795)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrove-oss authored Dec 11, 2024
1 parent b2892e2 commit 03ae95e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/jobframework/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ func ApplyDefaultLocalQueue(jobObj client.Object, defaultQueueExist func(string)
return
}
if QueueNameForObject(jobObj) == "" {
// Do not default the queue-name for a job whose owner is already managed by Kueue
if owner := metav1.GetControllerOf(jobObj); owner != nil && IsOwnerManagedByKueue(owner) {
return
}
labels := jobObj.GetLabels()
if labels == nil {
labels = make(map[string]string, 1)
Expand Down

0 comments on commit 03ae95e

Please sign in to comment.