• k8s-merge-robot's avatar
    Merge pull request #26907 from smarterclayton/tolerate_quantity · 54b352ae
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Resource quantity must support leading and trailing whitespace in JSON for back-compat
    
    For backwards compatibility reasons, we must continue to support leading or trailing whitespace on Quantity values when deserialized from JSON.  We must also support numbers serialized into yaml (`cpu: 1`) and JSON (`"cpu": 1`)
    
    Fixes #26898
    54b352ae
quantity.go 22.1 KB