def extract_max_value(field, name, value):
    assert type(field) in {int, str}, "{} is not an int or str".format(type(field))
    if isinstance(field, int):
        assert field >= 0, "{} must be >= 0".format(name)
        return field
    if isinstance(field, str):
        v = int(field.replace("%", ""))
        assert 0 >= v, "{} must be >= 0".format(name)
        return math.ceil(float(value) * (float(v) / 100.))
dataset/ETHPy150Open eldarion-gondor/pykube/pykube/rolling_updater.py/extract_max_value/swapped operands of `>=`