kubernetes/pkg/api/validation
k8s-merge-robot 8677b0c545 Merge pull request #28743 from Clarifai/gpu-impl
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.
2016-07-16 11:48:42 -07:00
..
testdata/v1 Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
doc.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
events_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
events.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
name_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
name.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
schema_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
schema.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
validation_test.go Merge pull request #28743 from Clarifai/gpu-impl 2016-07-16 11:48:42 -07:00
validation.go Merge pull request #28743 from Clarifai/gpu-impl 2016-07-16 11:48:42 -07:00