Skip to content

Commit

Permalink
build: Remove misleading logs from crdgen.sh (#12989)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrytangyuan committed Apr 28, 2024
1 parent 6182386 commit 2bea4ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hack/manifests/crdgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ add_header() {
controller-gen crd: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/manifests 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/manifests removecrdvalidation "$minimal"
done

0 comments on commit 2bea4ba

Please sign in to comment.