Skip to content

Commit e245dbb

Browse files
authored
Merge pull request #245 from mbohlool/doc
Add basic submodules documentation
2 parents b2a204c + 0836b85 commit e245dbb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

devel/submodules.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Submodules
2+
To comply with [client library structure requirement](https://github.com/kubernetes-client/community/blob/master/design-docs/clients-library-structure.md),
3+
python client base utilities is moved into kubernetes-client/python-base repo. `git submodules` is being used to handle dependency to that repo.
4+
This document will provide basic steps to get submodules work.
5+
6+
# Clone repo
7+
To clone repo, you need to pass `recursive` parameter to make the clone also get submodules:
8+
9+
```bash
10+
git clone --recursive https://github.com/kubernetes-incubator/client-python.git
11+
```
12+
13+
if you already clone repo with no `--recursive` option, you can run this command to get submodules:
14+
15+
```bash
16+
git submodule update --init
17+
```
18+
19+
# Update submodule
20+
If you changed kubernetes-client/python-base and want to pull your changes into this repo run this command:
21+
22+
```bash
23+
git submodule update --remote
24+
```
25+
26+
Once updated, you should create a new PR to commit changes to the repository.
27+

0 commit comments

Comments
 (0)