Update to v3
This commit is contained in:
@@ -30,9 +30,9 @@ Run: ./hack/update-generated-code.sh from the client directory.
|
||||
Once you run the script, you will get an output as follows:
|
||||
```bash
|
||||
Generating deepcopy funcs
|
||||
Generating clientset for volumesnapshot:v1beta1 at github.com/kubernetes-csi/external-snapshotter/client/v2/clientset
|
||||
Generating listers for volumesnapshot:v1beta1 at github.com/kubernetes-csi/external-snapshotter/client/v2/listers
|
||||
Generating informers for volumesnapshot:v1beta1 at github.com/kubernetes-csi/external-snapshotter/client/v2/informers
|
||||
Generating clientset for volumesnapshot:v1beta1 at github.com/kubernetes-csi/external-snapshotter/client/v3/clientset
|
||||
Generating listers for volumesnapshot:v1beta1 at github.com/kubernetes-csi/external-snapshotter/client/v3/listers
|
||||
Generating informers for volumesnapshot:v1beta1 at github.com/kubernetes-csi/external-snapshotter/client/v3/informers
|
||||
|
||||
```
|
||||
|
||||
|
@@ -25,13 +25,13 @@ SCRIPT_ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
|
||||
# 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.
|
||||
${GOPATH}/src/k8s.io/code-generator/generate-groups.sh "deepcopy,client,informer,lister" \
|
||||
github.com/kubernetes-csi/external-snapshotter/client/v2 github.com/kubernetes-csi/external-snapshotter/client/v2/apis \
|
||||
github.com/kubernetes-csi/external-snapshotter/client/v3 github.com/kubernetes-csi/external-snapshotter/client/v3/apis \
|
||||
volumesnapshot:v1beta1 \
|
||||
--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/v2 to client folder and remove client/v2
|
||||
cp -rf v2/. .
|
||||
rm -rf v2
|
||||
# Move generated file from client/v3 to client folder and remove client/v3
|
||||
cp -rf v3/. .
|
||||
rm -rf v3
|
||||
|
Reference in New Issue
Block a user