mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
Turn on "description:" verification for v1beta3 API.
This commit is contained in:
parent
28aef4ba53
commit
17446061b0
@ -37,7 +37,7 @@ find_files() {
|
||||
\) -name '*.go'
|
||||
}
|
||||
|
||||
files=`find_files | egrep "pkg/api/v.[^/]*/types\.go" | grep -v v1beta3`
|
||||
files=`find_files | egrep "pkg/api/v.[^/]*/types\.go"`
|
||||
|
||||
for file in $files
|
||||
do
|
||||
|
@ -17,7 +17,7 @@
|
||||
# Print 1 if the file in $1 is not in need of additional field descriptions, 0 otherwise.
|
||||
FILE="$1"
|
||||
|
||||
if grep json: "${FILE}" | grep -v ,inline | grep -v -q description: ; then
|
||||
if grep json: "${FILE}" | grep -v ,inline | grep -v -q description: | grep -v // ; then
|
||||
echo "0"
|
||||
else
|
||||
echo "1"
|
||||
|
Loading…
Reference in New Issue
Block a user