|
| 1 | +# Enhancement Proposal |
| 2 | + |
| 3 | +This document describes the process of submitting an Enhancement Proposal. Enhancement Proposals are a way to propose, |
| 4 | +communicate, and coordinate on enhancements for the NGINX Kubernetes Gateway. It is based off of |
| 5 | +the [Gateway Enhancement Proposals][gep]. Their purpose is to: |
| 6 | + |
| 7 | +- Make changes and proposals discoverable (current and future). |
| 8 | +- Provide a common place to discuss design, architecture, and impacts of a particular change. |
| 9 | +- Document design ideas, tradeoffs, and decisions for historical reference. |
| 10 | + |
| 11 | +[gep]: https://github.com/kubernetes-sigs/gateway-api/blob/c8b54a05c850cd717eb852c4874c6c89d02a5ef8/geps/overview.md |
| 12 | + |
| 13 | +## When to Write an Enhancement Proposal |
| 14 | + |
| 15 | +You should only write an Enhancement Proposal if a maintainer has requested one for a particular issue. All enhancement |
| 16 | +requests should start as an idea on [GitHub Discussions][discussion]. Not all enhancement requests will require an |
| 17 | +Enhancement Proposal. For example, here are some examples of requests that may not need an Enhancement Proposal: |
| 18 | + |
| 19 | +* Gateway API fields. However, some larger Gateway API fields may require Enhancement Proposals if they require |
| 20 | + significant changes to the architecture of the code. |
| 21 | +* Small changes (validation, documentation, fixups). It is always possible that the maintainers will determine a "small" |
| 22 | + change ends up requiring a Enhancement Proposal. |
| 23 | + |
| 24 | +[discussion]: https://github.com/nginxinc/nginx-kubernetes-gateway/discussions |
| 25 | + |
| 26 | +## Process |
| 27 | + |
| 28 | +The diagram below shows the Enhancement Proposal process: |
| 29 | + |
| 30 | +```mermaid |
| 31 | +flowchart TD |
| 32 | + D([Open Discussion]) --> C |
| 33 | + C([Issue Created]) --> Provisional |
| 34 | + Provisional -->|Enhancement Proposal<br /> Doc PR done| Implementable |
| 35 | + Implementable -->|Work completed| Completed |
| 36 | +``` |
| 37 | + |
| 38 | +### 1. Open a GitHub Discussion |
| 39 | + |
| 40 | +Before creating an issue or Enhancement Proposal, [open an idea][idea] on GitHub discussion. Describe the enhancement |
| 41 | +you would like, any use cases you have, and other relevant details. Beginning with a discussion allows you to get |
| 42 | +feedback from the maintainers and the community before you invest time in writing an Enhancement Proposal. |
| 43 | + |
| 44 | +[idea]: https://github.com/nginxinc/nginx-kubernetes-gateway/discussions/new?category=ideas |
| 45 | + |
| 46 | +### 2. Create an Issue |
| 47 | + |
| 48 | +If there is consensus on the discussion post that the enhancement is important and should be included in the roadmap, a |
| 49 | +maintainer will ask you to [open an issue][issue] on GitHub. |
| 50 | + |
| 51 | +Not every enhancement warrants an Enhancement Proposal. _If_ the enhancement issue requires an Enhancement Proposals, |
| 52 | +the maintainers will add the label `enhancement-proposal` to the issue. |
| 53 | + |
| 54 | +[issue]: https://github.com/nginxinc/nginx-kubernetes-gateway/issues/new?assignees=&labels=proposal&projects=&template=enhancement.md&title= |
| 55 | + |
| 56 | +### 3. Agree on the Goals (Provisional) |
| 57 | + |
| 58 | +Write the first version of your Enhancement Proposal using the [template](/docs/proposals/template.md), including only |
| 59 | +the summary of the enhancement and the sections addressing the "Goals" and "Non-Goals". The purpose of this initial |
| 60 | +Enhancement Proposal is to achieve consensus on the objectives before filling out the details of implementation. Set the |
| 61 | +[status](#status) field in the Enhancement Proposal document to "Provisional". |
| 62 | + |
| 63 | +Open a Pull Request with your Enhancement Proposal and work with the reviewers to get the necessary approvals. All |
| 64 | +Enhancement Proposals should be placed in the [docs/proposals](/docs/proposals) directory. |
| 65 | + |
| 66 | +### 4. Document Implementation Details |
| 67 | + |
| 68 | +Once the goals are set and the Provisional Enhancement Proposal has been merged, you can begin filling out the |
| 69 | +implementation details of the [template](/docs/proposals/template.md). Set the [status](#status) field in the |
| 70 | +Enhancement Proposal document to "Implementable". |
| 71 | + |
| 72 | +Make your changes to the existing Provisional Enhancement Proposal and open a Pull Request. Work with the reviewers to |
| 73 | +get the necessary approvals. |
| 74 | + |
| 75 | +### 5. Implement |
| 76 | + |
| 77 | +Once the Implementable Enhancement Proposal is merged, you can start implementing the proposed changes. In some cases it |
| 78 | +may be beneficial to open a draft Pull Request with a prototype of the changes. Otherwise, open a standard Pull Request |
| 79 | +with the changes and update the status field of the corresponding Enhancement Proposal to "Completed". |
| 80 | + |
| 81 | +> Note: |
| 82 | +> |
| 83 | +> Make sure to read the [Development Guide](/CONTRIBUTING.md#development-guide) before making any code changes. |
| 84 | +
|
| 85 | +## Status |
| 86 | + |
| 87 | +Each Enhancement Proposal has a status field that defines its current state. Each transition will require a PR to update |
| 88 | +the Enhancement Proposal. |
| 89 | + |
| 90 | +* **Provisional:** The goals described by this Enhancement Proposal have consensus but implementation details have not |
| 91 | + been agreed to yet. |
| 92 | +* **Implementable:** The goals and implementation details described by this Enhancement Proposal have consensus but have |
| 93 | + not been fully implemented yet. |
| 94 | +* **Completed:** This Enhancement Proposal has been implemented. |
| 95 | + |
| 96 | +Although less common, some Enhancement Proposals may end up in one of the following states: |
| 97 | + |
| 98 | +* **Deferred:** We do not currently have bandwidth to handle this Enhancement Proposal, it may be revisited in the |
| 99 | + future. |
| 100 | +* **Rejected:** This proposal was considered but ultimately rejected. |
| 101 | +* **Replaced:** This proposal was considered but ultimately replaced by a newer proposal. |
| 102 | +* **Withdrawn:** This proposal was considered but ultimately withdrawn by the author. |
0 commit comments