You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.4 KiB

  1. # Contributing guidelines
  2. ## How to become a contributor and submit your own code
  3. ### Environment setup
  4. It is recommended to use filter to manage the GitHub email notification, see [examples for setting filters to Kubernetes Github notifications](https://github.com/kubernetes/community/blob/master/communication/best-practices.md#examples-for-setting-filters-to-kubernetes-github-notifications)
  5. To install development dependencies you can use `pip install -r tests/requirements.txt`
  6. #### Linting
  7. Kubespray uses `yamllint` and `ansible-lint`. To run them locally use `yamllint .` and `./tests/scripts/ansible-lint.sh`
  8. #### Molecule
  9. [molecule](https://github.com/ansible-community/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 `cd roles/my-role && molecule test`
  10. #### Vagrant
  11. Vagrant with VirtualBox or libvirt driver helps you to quickly spin test clusters to test things end to end. See [README.md#vagrant](README.md)
  12. ### Contributing A Patch
  13. 1. Submit an issue describing your proposed change to the repo in question.
  14. 2. The [repo owners](OWNERS) will respond to your issue promptly.
  15. 3. Fork the desired repo, develop and test your code changes.
  16. 4. Sign the CNCF CLA (<https://git.k8s.io/community/CLA.md#the-contributor-license-agreement>)
  17. 5. Submit a pull request.