• k8s-merge-robot's avatar
    Merge pull request #28743 from Clarifai/gpu-impl · 8677b0c5
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Fix GPU resource validation
    
    This fixes scheduling of pods with GPU resources. The change was never upstreamed during the 1.3 beta period, as it got lost in the noise of other changes in our fork. Ooops. I'll submit a cherry-pick request for 1.3.1 as soon as this lands in master.
    
    Because of defaulting, requests are always set if limits are. Thus, the check can never succeed. Instead, make sure that the two values are equal.
    
    Also, remove a few other error messages and remove unnecessary Sprintf calls.
    8677b0c5
validation.go 134 KB