mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
19 lines
762 B
Bash
19 lines
762 B
Bash
|
#!/bin/bash
|
||
|
set -o errexit
|
||
|
set -o nounset
|
||
|
set -o pipefail
|
||
|
|
||
|
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..
|
||
|
CODEGEN_PKG=${SCRIPT_ROOT}/vendor/k8s.io/code-generator
|
||
|
|
||
|
# generate the code with:
|
||
|
# --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.
|
||
|
${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \
|
||
|
github.com/nirmata/kube-policy/pkg/client github.com/nirmata/kube-policy/pkg/apis \
|
||
|
policy:v1alpha1
|
||
|
|
||
|
# To use your own boilerplate text use:
|
||
|
# --go-header-file ${SCRIPT_ROOT}/hack/custom-boilerplate.go.txt
|