func isSupportedWithRangeInt32()

in pkg/selector/comparators.go [184:193]


func isSupportedWithRangeInt32(instanceTypeValue *int32, target *Int32RangeFilter) bool {
	if target == nil {
		return true
	} else if instanceTypeValue == nil && target.LowerBound == 0 && target.UpperBound == 0 {
		return true
	} else if instanceTypeValue == nil {
		return false
	}
	return *instanceTypeValue >= target.LowerBound && *instanceTypeValue <= target.UpperBound
}