Skip to content

Commit 1271465

Browse files
authored
Merge pull request #1672 from yliaog/master
removed submodule
2 parents dac1f7b + 9d17691 commit 1271465

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+8048
-4
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

kubernetes/base

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!-- Thanks for sending a pull request! Here are some tips for you:
2+
3+
1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide/first-contribution.md#your-first-contribution and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide
4+
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request. For reference on required PR/issue labels, read here:
5+
https://git.k8s.io/community/contributors/devel/sig-release/release.md#issuepr-kind-label
6+
3. Ensure you have added or ran the appropriate tests for your PR: https://git.k8s.io/community/contributors/devel/sig-testing/testing.md
7+
4. If you want *faster* PR reviews, read how: https://git.k8s.io/community/contributors/guide/pull-requests.md#best-practices-for-faster-reviews
8+
5. If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests
9+
-->
10+
11+
#### What type of PR is this?
12+
13+
<!--
14+
Add one of the following kinds:
15+
/kind bug
16+
/kind cleanup
17+
/kind documentation
18+
/kind feature
19+
/kind design
20+
21+
Optionally add one or more of the following kinds if applicable:
22+
/kind api-change
23+
/kind deprecation
24+
/kind failing-test
25+
/kind flake
26+
/kind regression
27+
-->
28+
29+
#### What this PR does / why we need it:
30+
31+
#### Which issue(s) this PR fixes:
32+
<!--
33+
*Automatically closes linked issue when PR is merged.
34+
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
35+
_If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_*
36+
-->
37+
Fixes #
38+
39+
#### Special notes for your reviewer:
40+
41+
#### Does this PR introduce a user-facing change?
42+
<!--
43+
If no, just write "NONE" in the release-note block below.
44+
If yes, a release note is required:
45+
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
46+
47+
For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
48+
-->
49+
```release-note
50+
51+
```
52+
53+
#### Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
54+
55+
<!--
56+
This section can be blank if this pull request does not require a release note.
57+
58+
When adding links which point to resources within git repositories, like
59+
KEPs or supporting documentation, please reference a specific commit and avoid
60+
linking directly to the master branch. This ensures that links reference a
61+
specific point in time, rather than a document that may change over time.
62+
63+
See here for guidance on getting permanent links to files: https://help.github.com/en/articles/getting-permanent-links-to-files
64+
65+
Please use the following format for linking documentation:
66+
- [KEP]: <link>
67+
- [Usage]: <link>
68+
- [Other doc]: <link>
69+
-->
70+
```docs
71+
72+
```

kubernetes/base/.gitignore

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
56+
# Flask stuff:
57+
instance/
58+
.webassets-cache
59+
60+
# Scrapy stuff:
61+
.scrapy
62+
63+
# Sphinx documentation
64+
docs/_build/
65+
66+
# PyBuilder
67+
target/
68+
69+
# IPython Notebook
70+
.ipynb_checkpoints
71+
72+
# pyenv
73+
.python-version
74+
75+
# celery beat schedule file
76+
celerybeat-schedule
77+
78+
# dotenv
79+
.env
80+
81+
# virtualenv
82+
venv/
83+
ENV/
84+
85+
# Spyder project settings
86+
.spyderproject
87+
88+
# Rope project settings
89+
.ropeproject
90+
91+
# Intellij IDEA files
92+
.idea/*
93+
*.iml
94+
.vscode
95+

kubernetes/base/.travis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
dist: xenial
4+
5+
stages:
6+
- verify boilerplate
7+
- test
8+
9+
install:
10+
- pip install tox
11+
12+
script:
13+
- ./run_tox.sh tox
14+
15+
jobs:
16+
include:
17+
- stage: verify boilerplate
18+
script: ./hack/verify-boilerplate.sh
19+
python: 3.7
20+
- stage: test
21+
python: 3.9
22+
env: TOXENV=update-pycodestyle
23+
- python: 3.9
24+
env: TOXENV=coverage,codecov
25+
- python: 3.7
26+
env: TOXENV=docs
27+
- python: 3.5
28+
env: TOXENV=py35
29+
- python: 3.5
30+
env: TOXENV=py35-functional
31+
- python: 3.6
32+
env: TOXENV=py36
33+
- python: 3.6
34+
env: TOXENV=py36-functional
35+
- python: 3.7
36+
env: TOXENV=py37
37+
- python: 3.7
38+
env: TOXENV=py37-functional
39+
- python: 3.8
40+
env: TOXENV=py38
41+
- python: 3.8
42+
env: TOXENV=py38-functional
43+
- python: 3.9
44+
env: TOXENV=py39
45+
- python: 3.9
46+
env: TOXENV=py39-functional

kubernetes/base/CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Contributing
2+
3+
Thanks for taking the time to join our community and start contributing!
4+
5+
Any changes to utilities in this repo should be send as a PR to this repo.
6+
After the PR is merged, developers should create another PR in the main repo to update the submodule.
7+
See [this document](https://github.com/kubernetes-client/python/blob/master/devel/submodules.md) for more guidelines.
8+
9+
The [Contributor Guide](https://github.com/kubernetes/community/blob/master/contributors/guide/README.md)
10+
provides detailed instructions on how to get your ideas and bug fixes seen and accepted.
11+
12+
Please remember to sign the [CNCF CLA](https://github.com/kubernetes/community/blob/master/CLA.md) and
13+
read and observe the [Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
14+
15+
## Adding new Python modules or Python scripts
16+
If you add a new Python module please make sure it includes the correct header
17+
as found in:
18+
```
19+
hack/boilerplate/boilerplate.py.txt
20+
```
21+
22+
This module should not include a shebang line.
23+
24+
If you add a new Python helper script intended for developers usage, it should
25+
go into the directory `hack` and include a shebang line `#!/usr/bin/env python`
26+
at the top in addition to rest of the boilerplate text as in all other modules.
27+
28+
In addition this script's name should be added to the list
29+
`SKIP_FILES` at the top of hack/boilerplate/boilerplate.py.

0 commit comments

Comments
 (0)