You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.V(2).Info("Could not convert the value with annotation key for the replica set", "annotationValue", rs.Annotations[annotationKey], "annotationKey", annotationKey, "replicaSet", klog.KObj(rs))
logger.V(2).Info("Could not convert the value with annotation key for the replica set", "annotationValue", annotationValue, "annotationKey", annotationKey, "replicaSet", klog.KObj(rs))
396
-
returnint32(0), false
403
+
returnint32(0), false, err
404
+
}
405
+
ifintValue>math.MaxInt32 {
406
+
returnint32(0), false, fmt.Errorf("value %d is out of range (higher than %d)", intValue, math.MaxInt32)
397
407
}
398
-
returnint32(intValue), true
408
+
returnint32(intValue), true, nil
399
409
}
400
410
401
411
// SetReplicasAnnotations sets the desiredReplicas and maxReplicas into the annotations
0 commit comments