forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a guideline to update k8s dependencies Signed-off-by: fossedihelm <[email protected]>
- Loading branch information
1 parent
90227f2
commit 692d380
Showing
2,240 changed files
with
190,583 additions
and
38,830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Updating Dependencies | ||
|
||
## Updating k8s dependencies | ||
|
||
To correctly update k8s dependencies we have to first bump all replace directives of `k8s.io/*` in | ||
* [go.mod](../go.mod) | ||
* [staging/client-go/go.mod](../staging/src/kubevirt.io/client-go/go.mod) | ||
* [staging/src/kubevirt.io/api/go.mod](../staging/src/kubevirt.io/api/go.mod) | ||
|
||
Then (if necessary) delete generated code that potentially references deprecated or eliminated stuff (like the mock client) and, on cascade, fix the files[1] that include these (remember which files are affected because at the end you will have to revert the changes you made to restore them). | ||
Delete generated code is not a problem because it will be regenerated. | ||
Run `make deps-update` to update dependencies. | ||
Run `make && make generate` to regenerate the code. | ||
Don't forget to restore the files edited in [1]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.