Skip to content

Commit

Permalink
build: Remove misleading logs from crdgen.sh (#12989)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2bea4ba)
  • Loading branch information
terrytangyuan authored and agilgur5 committed May 27, 2024
1 parent 27a283a commit a2bbac5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hack/crdgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ add_header() {
controller-gen crd:trivialVersions=true,maxDescLen=0 paths=./pkg/apis/... output:dir=manifests/base/crds/full

find manifests/base/crds/full -name 'argoproj.io*.yaml' | while read -r file; do
echo "Patching ${file}"
# remove junk fields
go run ./hack cleancrd "$file"
add_header "$file"
# create minimal
minimal="manifests/base/crds/minimal/$(basename "$file")"
echo "Creating ${minimal}"
echo "Creating minimal CRD file: ${minimal}"
cp "$file" "$minimal"
go run ./hack removecrdvalidation "$minimal"
done

0 comments on commit a2bbac5

Please sign in to comment.