Update client to v6

This commit is contained in:
Raunak Pradip Shah
2022-03-24 09:43:05 +05:30
parent a5c387c645
commit f3a863922e
41 changed files with 84 additions and 84 deletions

View File

@@ -26,13 +26,13 @@ SCRIPT_ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
# instead of the $GOPATH directly. For normal projects this can be dropped.
# We should only be generating code for v1 now, while keeping the existing generated code for v1beta1
${GOPATH}/src/k8s.io/code-generator/generate-groups.sh "deepcopy,client,informer,lister" \
github.com/kubernetes-csi/external-snapshotter/client/v5 github.com/kubernetes-csi/external-snapshotter/client/v5/apis \
github.com/kubernetes-csi/external-snapshotter/client/v6 github.com/kubernetes-csi/external-snapshotter/client/v6/apis \
volumesnapshot:v1beta1,v1 \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt
# To use your own boilerplate text use:
# --go-header-file ${SCRIPT_ROOT}/hack/custom-boilerplate.go.txt
# Move generated file from client/v5 to client folder and remove client/v5
cp -rf v5/. .
rm -rf v5
# Move generated file from client/v6 to client folder and remove client/v6
cp -rf v6/. .
rm -rf v6