Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
9ace0204
Unverified
Commit
9ace0204
authored
Dec 06, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Dec 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #52 from msau42/update-readme
Improve README by adding an explicit Kubernetes dependency section
parents
540599ba
53888ae7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
README.md
README.md
+15
-11
No files found.
README.md
View file @
9ace0204
...
...
@@ -141,17 +141,6 @@ The `vendor` directory is optional. It is still present in projects
because it avoids downloading sources during CI builds. If this is no
longer deemed necessary, then a project can also remove the directory.
When using packages that are part of the Kubernetes source code, the
commands above are not enough because the
[
lack of semantic
versioning](https://github.com/kubernetes/kubernetes/issues/72638)
prevents
`go mod`
from finding newer releases. Importing directly from
`kubernetes/kubernetes`
also needs
`replace`
statements to override
the fake
`v0.0.0`
versions
(https://github.com/kubernetes/kubernetes/issues/79384). The
`go-get-kubernetes.sh`
script can be used to update all packages in
lockstep to a different Kubernetes version. It takes a single version
number like "1.16.0".
Conversion of a repository that uses
`dep`
to
`go mod`
can be done with:
GO111MODULE=on go mod init
...
...
@@ -160,3 +149,18 @@ Conversion of a repository that uses `dep` to `go mod` can be done with:
GO111MODULE=on go mod vendor
git rm -f Gopkg.toml Gopkg.lock
git add go.mod go.sum vendor
### Updating Kubernetes dependencies
When using packages that are part of the Kubernetes source code, the
commands above are not enough because the
[
lack of semantic
versioning](https://github.com/kubernetes/kubernetes/issues/72638)
prevents
`go mod`
from finding newer releases. Importing directly from
`kubernetes/kubernetes`
also needs
`replace`
statements to override
the fake
`v0.0.0`
versions
(https://github.com/kubernetes/kubernetes/issues/79384). The
`go-get-kubernetes.sh`
script can be used to update all packages in
lockstep to a different Kubernetes version. Example usage:
```
$ ./release-tools/go-get-kubernetes.sh 1.16.4
```
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