mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Revert "Revert "Add optional validation to kubecfg/kubectl.""
This reverts commit 6590c66dd4.
			
			
This commit is contained in:
		@@ -30,12 +30,12 @@ import (
 | 
			
		||||
	fuzz "github.com/google/gofuzz"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func LoadSchemaForTest(file string) (*Schema, error) {
 | 
			
		||||
func LoadSchemaForTest(file string) (Schema, error) {
 | 
			
		||||
	data, err := ioutil.ReadFile(file)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return NewSchemaFromBytes(data)
 | 
			
		||||
	return NewSwaggerSchemaFromBytes(data)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: this is cloned from serialization_test.go, refactor to somewhere common like util
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user