1 Star 0 Fork 0

大目 / kubespray

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CONTRIBUTING.md 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
Maxime Guyot 提交于 2020-04-28 14:28 . Fix crio runc path on Ubuntu (#6035)

Contributing guidelines

How to become a contributor and submit your own code

Environment setup

It is recommended to use filter to manage the GitHub email notification, see examples for setting filters to Kubernetes Github notifications

To install development dependencies you can use pip install -r tests/requirements.txt

Linting

Kubespray uses yamllint and ansible-lint. To run them locally use yamllint . and ./tests/scripts/ansible-lint.sh

Molecule

molecule is designed to help the development and testing of Ansible roles. In Kubespray you can run it all for all roles with ./tests/scripts/molecule_run.sh or for a specific role (that you are working with) with molecule test from the role directory (cd roles/my-role).

When developing or debugging a role it can be useful to run molecule create and molecule converge separately. Then you can use molecule login to SSH into the test environment.

Vagrant

Vagrant with VirtualBox or libvirt driver helps you to quickly spin test clusters to test things end to end. See README.md#vagrant

Contributing A Patch

  1. Submit an issue describing your proposed change to the repo in question.
  2. The repo owners will respond to your issue promptly.
  3. Fork the desired repo, develop and test your code changes.
  4. Sign the CNCF CLA (https://git.k8s.io/community/CLA.md#the-contributor-license-agreement)
  5. Submit a pull request.
1
https://gitee.com/itmuch/kubespray.git
git@gitee.com:itmuch/kubespray.git
itmuch
kubespray
kubespray
master

搜索帮助