chenyulin0719 commented on code in PR #808:
URL: https://github.com/apache/yunikorn-k8shim/pull/808#discussion_r1554825352


##########
pkg/common/utils/utils.go:
##########
@@ -373,10 +373,17 @@ func GetPlaceholderFlagFromPodSpec(pod *v1.Pod) bool {
                }
        }
 
-       if value := GetPodLabelValue(pod, constants.LabelPlaceholderFlag); 
value != "" {
+       if value := GetPodAnnotationValue(pod, 
constants.OldAnnotationPlaceholderFlag); value != "" { // nolint:staticcheck
                if v, err := strconv.ParseBool(value); err == nil {
                        return v
                }
        }
+
+       if value := GetPodLabelValue(pod, constants.OldLabelPlaceholderFlag); 
value != "" { // nolint:staticcheck
+               if v, err := strconv.ParseBool(value); err == nil {

Review Comment:
   Done.



##########
pkg/common/utils/utils.go:
##########
@@ -373,10 +373,17 @@ func GetPlaceholderFlagFromPodSpec(pod *v1.Pod) bool {
                }
        }
 
-       if value := GetPodLabelValue(pod, constants.LabelPlaceholderFlag); 
value != "" {
+       if value := GetPodAnnotationValue(pod, 
constants.OldAnnotationPlaceholderFlag); value != "" { // nolint:staticcheck

Review Comment:
   Done.



-- 
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]

Reply via email to