From b852b365553dd379122c76a0d96a73ce5a6dae3e Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 4 Jan 2023 21:41:01 -0800 Subject: [PATCH] Codegen: rm applyconfig files before regen --- hack/update-codegen.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 7ead9d63d5c..d6112d00efa 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -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}" \