mirror of https://github.com/knative/pkg.git
tweak scripts to support gengov2 framework
This commit is contained in:
parent
8f1bc065b0
commit
ea568e4b4a
|
@ -82,11 +82,15 @@ if grep -qw "injection" <<<"${GENS}"; then
|
|||
# Clear old injection
|
||||
rm -rf ${OUTPUT_PKG}
|
||||
|
||||
MODULE_NAME=$(go list -m)
|
||||
|
||||
go run knative.dev/pkg/codegen/cmd/injection-gen \
|
||||
-v 5 \
|
||||
--input-dirs $(codegen::join , "${FQ_APIS[@]}") \
|
||||
--versioned-clientset-package ${VERSIONED_CLIENTSET_PKG} \
|
||||
--external-versions-informers-package ${EXTERNAL_INFORMER_PKG} \
|
||||
--listers-package ${LISTERS_PKG} \
|
||||
--output-package ${OUTPUT_PKG} \
|
||||
--output-dir ${OUTPUT_PKG//${MODULE_NAME}\//} \
|
||||
"$@"
|
||||
fi
|
||||
|
|
|
@ -22,7 +22,7 @@ source $(dirname $0)/../vendor/knative.dev/hack/codegen-library.sh
|
|||
|
||||
echo "=== Update Codegen for $MODULE_NAME"
|
||||
|
||||
group "Kubernetes Codegen"
|
||||
group "Knative Codegen"
|
||||
|
||||
# Knative Injection
|
||||
${REPO_ROOT_DIR}/hack/generate-knative.sh "injection" \
|
||||
|
@ -35,7 +35,6 @@ ${REPO_ROOT_DIR}/hack/generate-knative.sh "injection" \
|
|||
K8S_TYPES=$(find ./vendor/k8s.io/api -type d -path '*/*/*/*/*/*' | cut -d'/' -f 5-6 | sort | sed 's@/@:@g' |
|
||||
grep -v "abac:" | \
|
||||
grep -v "admission:" | \
|
||||
grep -v "admissionregistration:" | \
|
||||
grep -v "componentconfig:" | \
|
||||
grep -v "imagepolicy:" | \
|
||||
grep -v "resource:" | \
|
||||
|
@ -61,7 +60,8 @@ VERSIONED_CLIENTSET_PKG="k8s.io/apiextensions-apiserver/pkg/client/clientset/cli
|
|||
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt \
|
||||
--force-genreconciler-kinds "CustomResourceDefinition"
|
||||
|
||||
group "Knative Codegen"
|
||||
|
||||
group "Kubernetes Codegen"
|
||||
|
||||
# Only deepcopy the Duck types, as they are not real resources.
|
||||
go run k8s.io/code-generator/cmd/deepcopy-gen \
|
||||
|
|
0
vendor/k8s.io/code-generator/generate-internal-groups.sh
generated
vendored
Executable file → Normal file
0
vendor/k8s.io/code-generator/generate-internal-groups.sh
generated
vendored
Executable file → Normal file
Loading…
Reference in New Issue