File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
branch : master
7
7
generate-command : |
8
8
cd $GOPATH
9
- git clone https://github.com/kubernetes/kubernetes.git src/k8s.io/kubernetes
9
+ # set the branch, ex: v1.17.0 while K8S_RELEASE=1.17
10
+ # CAUTION: The script won't work if you set K8S_RELEASE=1.18 before 1.18 is formally released.
11
+ # The `v${K8S_RELEASE}.0` string must be a valid tag name from the kubernetes repo, which
12
+ # is only created after the formal release.
13
+ git clone --depth=1 --single-branch --branch v${K8S_RELEASE}.0 https://github.com/kubernetes/kubernetes.git src/k8s.io/kubernetes
10
14
cd src/k8s.io/kubernetes
11
- # set the branch, ex: v1.17.0
12
- git checkout v${K8S_RELEASE}.0
13
15
make generated_files
14
16
cp -L -R vendor $GOPATH/src
15
17
rm -r vendor/github.com/spf13/cobra
You can’t perform that action at this time.
0 commit comments