Skip to content

Commit

Permalink
Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-tzionlmb committed Jun 5, 2024
1 parent 48ec26e commit 1e391bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions hack/generate-groups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ APIS_PKG="$3"
GROUPS_WITH_VERSIONS="$4"
shift 4

#go install -mod=mod k8s.io/code-generator/cmd/{defaulter-gen,client-gen,lister-gen,informer-gen,deepcopy-gen}
go install k8s.io/code-generator/cmd/{defaulter-gen,client-gen,lister-gen,informer-gen,deepcopy-gen}

# Go installs the above commands to get installed in $GOBIN if defined, and $GOPATH/bin otherwise:
Expand All @@ -66,7 +65,8 @@ FQ_APIS+=("${APIS_PKG}/${G}/${V}")
done
done

#set -x
# for debugging uncomment the following line
# set -x
if [ "${GENS}" = "all" ] || grep -qw "deepcopy" <<<"${GENS}"; then
echo "Generating deepcopy funcs"
"${gobin}/deepcopy-gen" --input-dirs "$(codegen::join , "${FQ_APIS[@]}")" -O zz_generated.deepcopy --bounding-dirs "${APIS_PKG}" "$@"
Expand Down
6 changes: 1 addition & 5 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
set -o errexit
set -o nounset
set -o pipefail
# for debugging uncomment the following line
# set -x
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..

Expand All @@ -31,11 +32,6 @@ ${SCRIPT_ROOT}/hack/generate-groups.sh "all" \
--go-header-file "$(dirname ${BASH_SOURCE})/custom-boilerplate.go.txt" \
--output-base "$(dirname ${BASH_SOURCE})/../../../.."

# ${SCRIPT_ROOT}/hack/generate-groups.sh "all" \
# ./pkg/client ./pkg/apis \
# sparkoperator.k8s.io:v1beta1,v1beta2 \
# --go-header-file "$(dirname ${BASH_SOURCE})/custom-boilerplate.go.txt" -v 500

# To use your own boilerplate text append:
# --go-header-file ${SCRIPT_ROOT}/hack/custom-boilerplate.go.txt

0 comments on commit 1e391bf

Please sign in to comment.