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