Skip to content

Commit

Permalink
Merge pull request #8117 from blackpiglet/remove_code_generator
Browse files Browse the repository at this point in the history
Remove code-generator from hack/update-3generated-crd.code.sh
  • Loading branch information
shubham-pampattiwar authored Aug 15, 2024
2 parents 8fde4a0 + c040207 commit a9463ce
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions hack/update-3generated-crd-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,6 @@ if ! command -v controller-gen > /dev/null; then
exit 1
fi

# get code-generation tools (for now keep in GOPATH since they're not fully modules-compatible yet)
mkdir -p ${GOPATH}/src/k8s.io
pushd ${GOPATH}/src/k8s.io
git clone -b v0.22.2 https://github.com/kubernetes/code-generator
popd

${GOPATH}/src/k8s.io/code-generator/generate-groups.sh \
all \
github.com/vmware-tanzu/velero/pkg/generated \
github.com/vmware-tanzu/velero/pkg/apis \
"velero:v1,v2alpha1" \
--go-header-file ./hack/boilerplate.go.txt \
--output-base ../../.. \
$@

# Generate apiextensions.k8s.io/v1

# Generate CRD for v1.
controller-gen \
crd:crdVersions=v1 \
Expand Down

0 comments on commit a9463ce

Please sign in to comment.