Debian Codegraph @

ansible_collections/community/okd/CONTRIBUTING.md

raw
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 ### community.okd
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 `community.okd`.
18
19 ## Submitting Issues
20 All software has bugs, and the `community.okd` collection is no exception. When you find a bug,
21 you can help tremendously by [telling us about it](https://github.com/ansible-collections/community.okd/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 [community.okd](https://github.com/ansible-collections/community.okd) 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. For questions about writing tests the Ansible Kubernetes community can be found on Libera.Chat IRC as detailed below.
52
53
54 ### Code of Conduct
55 The `community.okd` collection follows the Ansible project's
56 [Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html).
57 Please read and familiarize yourself with this document.
58
59 ### IRC
60 Our IRC channels may require you to register your nickname. If you receive an error when you connect, see
61 [Libera.Chat's Nickname Registration guide](https://libera.chat/guides/registration) for instructions.
62
63 The `#ansible-kubernetes` channel on [irc.libera.chat](https://libera.chat/) is the main and official place to discuss use and development of the `community.okd` collection.
64
65 For more information about Ansible's Kubernetes and OpenShift integration, browse the resources in the [Kubernetes Working Group](https://github.com/ansible/community/wiki/Kubernetes) Community wiki page.