Debian Codegraph @

ansible_collections/kubernetes/core/CONTRIBUTING.md

raw symbols SCIP
1 # Contributing
2
3 ## Getting Started
4
5 General information about setting up your Python environment, testing modules,
6 Ansible coding styles, and more can be found in the [Ansible Community Guide](
7 https://docs.ansible.com/ansible/latest/community/index.html).
8
9
10 ## Kubernetes Collections
11
12 ### kubernetes.core
13
14 This collection contains modules and plugins contributed and maintained by the Ansible Kubernetes
15 community.
16
17 New modules and plugins developed by the community should be proposed to `kubernetes.core`.
18
19 ## Submitting Issues
20 All software has bugs, and the `kubernetes.core` collection is no exception. When you find a bug,
21 you can help tremendously by [telling us about it](https://github.com/ansible-collections/kubernetes.core/issues/new/choose).
22
23 If you should discover that the bug you're trying to file already exists in an issue,
24 you can help by verifying the behavior of the reported bug with a comment in that
25 issue, or by reporting any additional information.
26
27 ## Pull Requests
28
29 All modules MUST have integration tests for new features.
30 Bug fixes for modules that currently have integration tests SHOULD have tests added.
31 New modules should be submitted to the [kubernetes.core](https://github.com/ansible-collections/kubernetes.core) collection and MUST have integration tests.
32
33 Expected test criteria:
34 * Resource creation under check mode
35 * Resource creation
36 * Resource creation again (idempotency) under check mode
37 * Resource creation again (idempotency)
38 * Resource modification under check mode
39 * Resource modification
40 * Resource modification again (idempotency) under check mode
41 * Resource modification again (idempotency)
42 * Resource deletion under check mode
43 * Resource deletion
44 * Resource deletion (of a non-existent resource) under check mode
45 * Resource deletion (of a non-existent resource)
46
47 Where modules have multiple parameters we recommend running through the 4-step modification cycle for each parameter the module accepts, as well as a modification cycle where as most, if not all, parameters are modified at the same time.
48
49 For general information on running the integration tests see the
50 [Integration Tests page of the Module Development Guide](https://docs.ansible.com/ansible/devel/dev_guide/testing_integration.html#testing-integration),
51 especially the section on configuration for cloud tests.
52
53 ### Updating documentation
54
55 Modules and plugins documentation is autogenerated using ``collection_prep_add_docs`` command from [collection_prep](https://github.com/ansible-network/collection_prep) package.
56
57 You can install ``collection_prep`` using
58
59 # git clone https://github.com/ansible-network/collection_prep
60 # cd collection_prep
61 # pip install .
62
63 After installation, you can update documentation
64
65 # collection_prep_add_docs -p /<PATH_OF_COLLECTION>/kubernetes/core
66
67 Review the changes and create a pull request using updated files.
68
69 ### Code of Conduct
70 The `kubernetes.core` collection follows the Ansible project's
71 [Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html).
72 Please read and familiarize yourself with this document.