Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f76b5801
Commit
f76b5801
authored
Oct 23, 2018
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add script to update vendor
parent
3ccde359
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
deps.sh
deps.sh
+28
-0
server.go
pkg/wrapper/server/server.go
+1
-0
No files found.
deps.sh
0 → 100755
View file @
f76b5801
#!/bin/bash
set
-e
find
-name
'*_test.go'
-exec
rm
{}
\;
find
-name
'*_windows.go'
-exec
rm
{}
\;
find
-depth
-name
testdata
-type
d
-exec
rm
-rf
{}
\;
find
-depth
-name
testing
-type
d
-exec
rm
-rf
{}
\;
rm
-rf
test
cat
<<
EOF
| sed -E 's!^([^/]+/[^/]+/[^/]+)(/[^ ]+) (.*)!\1 \3!g' | sed -E 's!^([ckv][^/]+/[^/]+)(/[^ ]+) (.*)!\1 \3!g' > vendor.conf
# package
k8s.io/kubernetes
$(
cat
./Godeps/Godeps.json | jq
-r
'(.Deps | .[] | "\(.ImportPath) \(.Rev)\n")'
|
grep
-v
bitbucket.org/ww/goautoneg |
sort
-k2
,1 |
uniq
-f1
)
bitbucket.org/ww/goautoneg a547fc61f48d567d5b4ec6f8aee5573d8efce11d https://github.com/rancher/goautoneg.git
github.com/ibuildthecloud/kvsql a0e152e9c6106f43de3ec1d0303ec849fbaba861
github.com/rancher/norman 04cb04ac06975a37f11a9c805e859a76f6d6ef10
EOF
trash 2>&1 |
tee
trash.log
for
i
in
$(
grep
'level=warning msg="Package'
trash.log |
awk
'{print $4}'
|
sed
"s/'//g"
)
;
do
echo
Removing
$i
cat
vendor.conf |
grep
-v
$i
>
vendor.conf.new
mv
vendor.conf.new vendor.conf
done
trash
rm
-rf
Godeps trash.log trash.lock
cd
vendor/k8s.io
ln
-s
../../staging/src/k8s.io/
*
.
pkg/wrapper/server/server.go
View file @
f76b5801
...
...
@@ -23,6 +23,7 @@ import (
"github.com/sirupsen/logrus"
"k8s.io/apiserver/pkg/authentication/authenticator"
apiserveroptions
"k8s.io/apiserver/pkg/server/options"
"k8s.io/apiserver/pkg/storage/storagebackend"
certutil
"k8s.io/client-go/util/cert"
"k8s.io/kubernetes/cmd/kube-apiserver/app"
"k8s.io/kubernetes/cmd/kube-apiserver/app/options"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment