mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Fix hack/verify-description.sh to actually surface the error
This commit is contained in:
		@@ -37,7 +37,10 @@ find_files() {
 | 
				
			|||||||
    \) -name '*.go'
 | 
					    \) -name '*.go'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
find_files | egrep "pkg/api/v.[^/]*/types\.go" | grep -v v1beta3 | while read file ; do
 | 
					files=`find_files | egrep "pkg/api/v.[^/]*/types\.go" | grep -v v1beta3`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for file in $files
 | 
				
			||||||
 | 
					do
 | 
				
			||||||
    if [[ "$("${KUBE_ROOT}/hooks/description.sh" "${file}")" -eq "0" ]]; then
 | 
					    if [[ "$("${KUBE_ROOT}/hooks/description.sh" "${file}")" -eq "0" ]]; then
 | 
				
			||||||
      echo "API file is missing the required field descriptions: ${file}"
 | 
					      echo "API file is missing the required field descriptions: ${file}"
 | 
				
			||||||
      result=1
 | 
					      result=1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user