From d823e3811493e9e9b24ec3ebf2b2eabe17b0ed32 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Sun, 9 Oct 2022 11:56:03 -0700 Subject: [PATCH] Cleanup codegen subproject scripts Mostly really small things like linewraps and quoting. Kubernetes-commit: 0cba4a197d07fc86292f3c029a8419e358cf0271 --- hack/update-codegen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index c5fb306c..e71453af 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -25,8 +25,9 @@ CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code- # --output-base because this script should also be able to run inside the vendor dir of # k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir # instead of the $GOPATH directly. For normal projects this can be dropped. -bash "${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client,informer,lister" \ - k8s.io/sample-controller/pkg/generated k8s.io/sample-controller/pkg/apis \ +"${CODEGEN_PKG}/generate-groups.sh" "deepcopy,client,informer,lister" \ + k8s.io/sample-controller/pkg/generated \ + k8s.io/sample-controller/pkg/apis \ samplecontroller:v1alpha1 \ --output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \ --go-header-file "${SCRIPT_ROOT}"/hack/boilerplate.go.txt