Codegen: rm applyconfig files before regen

This commit is contained in:
Tim Hockin 2023-01-04 21:41:01 -08:00
parent 6aea6fe86b
commit b852b36555
No known key found for this signature in database

View File

@ -594,6 +594,12 @@ function codegen::applyconfigs() {
done
fi
git_grep -l --null \
-e '^// Code generated by applyconfiguration-gen. DO NOT EDIT.$' \
-- \
':(glob)staging/src/k8s.io/client-go/**/*.go' \
| xargs -0 rm -f
"${applyconfigurationgen}" \
--openapi-schema <("${modelsschema}") \
--go-header-file "${BOILERPLATE_FILENAME}" \