zhuqi-lucas commented on code in PR #474:
URL: https://github.com/apache/yunikorn-k8shim/pull/474#discussion_r1013798112
##########
pkg/common/utils/utils.go:
##########
@@ -77,27 +79,27 @@ func GeneralPodFilter(pod *v1.Pod) bool {
func GetQueueNameFromPod(pod *v1.Pod) string {
queueName := constants.ApplicationDefaultQueue
- if an, ok := pod.Labels[constants.LabelQueueName]; ok {
+ if an := GetPodLabelValue(pod, constants.LabelQueueName); an != "" {
Review Comment:
cc @wilfred-s Here we originally prefer label first, if we need to change to
prefer AnnotationQueueName first?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]