k3s/pkg/api/validation
k8s-merge-robot 5f2460b58c Merge pull request #21240 from thockin/validation_pt8
Automatic merge from submit-queue

Validation: Make validation func return error strings

Part of an ongoing series of validation cleanups.

This centralizes the error strings next to the code that checks the error conditions.  Future commits will refine the messages further and provide more utility validators.

I'm OK if this doesn't go into 1.2, but I am tired of rebasing :)  I suggest commit-by-commit review, which should go pretty quickly.  This was largely mechanical.

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/21240)
<!-- Reviewable:end -->
2016-07-07 14:37:11 -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.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
name.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
schema.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
validation.go Merge pull request #21240 from thockin/validation_pt8 2016-07-07 14:37:11 -07:00
validation_test.go api: validate generation updates 2016-07-07 13:09:48 +02:00