mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #7640 from eparis/verify-description-v1beta3
Check v1beta3 description on git commit
This commit is contained in:
commit
a100e976ec
@ -29,8 +29,7 @@ for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.sh" | gr
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Check API schema definitions for field descriptions
|
# Check API schema definitions for field descriptions
|
||||||
# TODO: Check v1beta3, once it is documented
|
for file in $(git diff --cached --name-only --diff-filter ACM | egrep "pkg/api/v.[^/]*/types\.go" | grep -v "third_party"); do
|
||||||
for file in $(git diff --cached --name-only --diff-filter ACM | egrep "pkg/api/v.[^/]*/types\.go" | grep -v "third_party" | grep -v v1beta3); do
|
|
||||||
# Check for files with fields without description tags
|
# Check for files with fields without description tags
|
||||||
descriptionless=$("${KUBE_HOOKS_DIR}/description.sh" "${file}")
|
descriptionless=$("${KUBE_HOOKS_DIR}/description.sh" "${file}")
|
||||||
if [[ "$descriptionless" -eq "0" ]]; then
|
if [[ "$descriptionless" -eq "0" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user