Skip to content

Commit

Permalink
remove old generated crds before createint new ones (kubevirt#2699)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
  • Loading branch information
mhenriks authored Apr 25, 2023
1 parent 107f0b0 commit 94fe963
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ ${SCRIPT_ROOT}/bin/openapi-spec-generator >${SCRIPT_ROOT}/api/openapi-spec/swagg

echo "************* running controller-gen to generate schema yaml ********************"
(
mkdir -p "${SCRIPT_ROOT}/_out/manifests/schema"
find "${SCRIPT_ROOT}/_out/manifests/schema/" -type f -exec rm {} -f \;
cd ./staging/src/kubevirt.io/containerized-data-importer-api
controller-gen crd:crdVersions=v1 output:dir=${SCRIPT_ROOT}/_out/manifests/schema paths=./pkg/apis/core/...
)
Expand Down

0 comments on commit 94fe963

Please sign in to comment.