Skip to content

Commit c041ff1

Browse files
anuraaganutanix-Hrushikesh
authored andcommitted
ci: format markdown files with prettier (envoyproxy#1290)
**Description** Formats markdown files with go-prettier in `make format` --------- Signed-off-by: Anuraag Agrawal <[email protected]> Signed-off-by: Hrushikesh Patil <[email protected]>
1 parent cffb9cd commit c041ff1

File tree

130 files changed

+1588
-1066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+1588
-1066
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ charset = utf-8
55
end_of_line = lf
66
insert_final_newline = true
77
trim_trailing_whitespace = true
8+
9+
# Automatically formatted by prettier, which sometimes has trailing whitespace
10+
# in codeblocks. We don't need to check here since it's the formatting is checked
11+
# instead.
12+
[*.md]
13+
trim_trailing_whitespace = false
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: ""
55
labels: enhancement,triage
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

10-
*Description*:
11-
>Describe the desired behavior, what scenario it enables and how it
12-
would be used.
9+
_Description_:
10+
11+
> Describe the desired behavior, what scenario it enables and how it
12+
> would be used.
1313
1414
[optional *Relevant Links*:]
15-
>Any extra documentation required to understand the issue.
15+
16+
> Any extra documentation required to understand the issue.
Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
---
22
name: Bug
33
about: Bugs
4-
title: ''
4+
title: ""
55
labels: bug,triage
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

10-
*Description*:
11-
>What issue is being seen? Describe what should be happening instead of
12-
the bug, for example: Envoy should not crash, the expected value isn't
13-
returned, etc.
9+
_Description_:
10+
11+
> What issue is being seen? Describe what should be happening instead of
12+
> the bug, for example: Envoy should not crash, the expected value isn't
13+
> returned, etc.
14+
15+
_Repro steps_:
1416

15-
*Repro steps*:
1617
> Include sample requests, environment, etc. All data and inputs
17-
required to reproduce the bug.
18+
> required to reproduce the bug.
19+
20+
> **Note**: If there are privacy concerns, sanitize the data prior to
21+
> sharing.
22+
23+
_Environment_:
1824

19-
>**Note**: If there are privacy concerns, sanitize the data prior to
20-
sharing.
25+
> Include the environment like gateway version, envoy version and so on.
2126
22-
*Environment*:
23-
>Include the environment like gateway version, envoy version and so on.
27+
_Logs_:
2428

25-
*Logs*:
26-
>Include the access logs and the Envoy logs.
29+
> Include the access logs and the Envoy logs.

.github/ISSUE_TEMPLATE/other.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
name: Other
33
about: Questions, design proposals, tech debt, etc.
4-
title: ''
4+
title: ""
55
labels: triage
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

10-
*Description*:
11-
>Describe the issue.
9+
_Description_:
10+
11+
> Describe the issue.
1212
1313
[optional *Relevant Links*:]
14-
>Any extra documentation required to understand the issue.
14+
15+
> Any extra documentation required to understand the issue.

CONTRIBUTING.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ We welcome contributions from the community. Please read the following guideline
55
## Local development of Envoy AI Gateway project
66

77
First of all, there are only three minimal prerequisites to contribute to the project:
8-
* The latest Go toolchain
9-
* `make`
10-
* `docker`
8+
9+
- The latest Go toolchain
10+
- `make`
11+
- `docker`
1112

1213
which we assume you already have installed on your machine. Also, on macOS, you would need to install
1314
`brew install ca-certificates` to run some integration tests.
@@ -40,13 +41,13 @@ All test targets are prefixed with `test-*` and can be run via `make test-<targe
4041
Some test commands might require additional dependencies to be installed on your machine.
4142
For example,
4243

43-
* The latest `kubectl` binary for running `make test-e2e`.
44-
* See: https://kubernetes.io/docs/tasks/tools/
45-
* The latest `envoy` binary for running `make test-extproc`. The current required version is v1.35 or later.
46-
* On Linux, you can download the latest Envoy binary as described in https://www.envoyproxy.io/docs/envoy/latest/start/install.
44+
- The latest `kubectl` binary for running `make test-e2e`.
45+
- See: https://kubernetes.io/docs/tasks/tools/
46+
- The latest `envoy` binary for running `make test-extproc`. The current required version is v1.35 or later.
47+
- On Linux, you can download the latest Envoy binary as described in https://www.envoyproxy.io/docs/envoy/latest/start/install.
4748
Alternatively, you can use `func-e` on Linux as well like on macOS below.
48-
* On macOS, since `brew envoy` tends to behind the latest version, it is recommended use `func-e` to run the latest Envoy. See https://func-e.io/.
49-
* `alias envoy='func-e run'` is a convenient way to run the latest Envoy binary via `func-e` on both macOS and Linux.
49+
- On macOS, since `brew envoy` tends to behind the latest version, it is recommended use `func-e` to run the latest Envoy. See https://func-e.io/.
50+
- `alias envoy='func-e run'` is a convenient way to run the latest Envoy binary via `func-e` on both macOS and Linux.
5051
For example, `func-e use 1.34` can be used to switch to a specific version of Envoy to be run with `func-e run`.
5152

5253
Other than that, everything will be automatically managed and installed via `make` targets,
@@ -94,14 +95,14 @@ make sure that these automated checks pass after you open a PR by following the
9495

9596
### Code Reviews
9697

97-
* During the review, address the comments and commit the changes
98-
**without squashing the commits, force pushing, or rebasing the branch**.
99-
This facilitates incremental reviews since the reviewer does not go through all the code again to find out
100-
what has changed since the last review. When a change goes out of sych with master, please use `git merge`
101-
to avoid force pushing.
102-
* The only exception to this rule is when you mistakenly pushed a non-signoff commit.
98+
- During the review, address the comments and commit the changes
99+
**without squashing the commits, force pushing, or rebasing the branch**.
100+
This facilitates incremental reviews since the reviewer does not go through all the code again to find out
101+
what has changed since the last review. When a change goes out of sych with master, please use `git merge`
102+
to avoid force pushing.
103+
- The only exception to this rule is when you mistakenly pushed a non-signoff commit.
103104
In this case, you can amend the commit with the signoff line and force push.
104-
* Commits are squashed prior to merging a pull request, using the title and PR description
105-
as commit message by default. Maintainers may request contributors to
106-
edit the pull request title and description to ensure that it remains descriptive as a
107-
commit message. Alternatively, maintainers may change the commit message directly at the time of merge.
105+
- Commits are squashed prior to merging a pull request, using the title and PR description
106+
as commit message by default. Maintainers may request contributors to
107+
edit the pull request title and description to ensure that it remains descriptive as a
108+
commit message. Alternatively, maintainers may change the commit message directly at the time of merge.

GOALS.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Envoy AI Gateway GOALS.md
32

43
## Envoy AI Gateway Goals
@@ -21,12 +20,12 @@ Envoy AI Gateway will simplify the process of setting up an AI Gateway to manage
2120

2221
Envoy AI Gateway enables Platform Engineers to provide a Gateway solution that enables application developers to focus on leveraging GenAI for feature development.
2322

24-
* **Preset Envoy Gateway Configurations:** Default configurations that simplify setup of routing to GenAI Services, making it accessible to application developers.
25-
* **Leveraging Envoy:** The project aims to leverage the functionality of the Envoy Gateway control plane and the Envoy Proxy data plane.
23+
- **Preset Envoy Gateway Configurations:** Default configurations that simplify setup of routing to GenAI Services, making it accessible to application developers.
24+
- **Leveraging Envoy:** The project aims to leverage the functionality of the Envoy Gateway control plane and the Envoy Proxy data plane.
2625

2726
## Non-Objectives
2827

29-
* **Disruption of Existing Envoy Patterns:** This project is an additive layer designed to expand use cases for Envoy Proxy and Envoy Gateway without changing existing deployment or control patterns.
28+
- **Disruption of Existing Envoy Patterns:** This project is an additive layer designed to expand use cases for Envoy Proxy and Envoy Gateway without changing existing deployment or control patterns.
3029

3130
## Personas
3231

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ format: ## Format the codebase.
7474
@$(GO_TOOL) license-eye header fix
7575
@echo "prettier => **.{yaml,yml}"
7676
@$(GO_TOOL) prettier --write '**/*.{yaml,yml}'
77+
@echo "prettier => **.md"
78+
@$(GO_TOOL) prettier --write '**/*.md'
7779

7880
# This runs go mod tidy on every module.
7981
.PHONY: tidy

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Envoy AI Gateway
2+
23
Envoy AI Gateway is an open source project for using [Envoy Gateway](https://github.com/envoyproxy/gateway) to handle request traffic from application clients to Generative AI services.
34

45
## Usage
56

67
When using Envoy AI Gateway, we refer to a two-tier gateway pattern. **The Tier One Gateway** functions as a centralized entry point, and the **Tier Two Gateway** handles ingress traffic to a self-hosted model serving cluster.
78

8-
+ The **Tier One Gateway** handles authentication, top-level routing, and global rate limiting
9-
+ The **Tier Two Gateway** provides fine-grained control over self-hosted model access, with endpoint picker support for LLM inference optimization.
9+
- The **Tier One Gateway** handles authentication, top-level routing, and global rate limiting
10+
- The **Tier Two Gateway** provides fine-grained control over self-hosted model access, with endpoint picker support for LLM inference optimization.
1011

1112
![](site/blog/images/aigw-ref.drawio.png)
1213

@@ -85,17 +86,16 @@ Envoy AI Gateway supports a wide range of AI providers, making it easy to integr
8586
</table>
8687
</div>
8788

88-
8989
## Documentation
9090

91-
* [Blog](https://aigateway.envoyproxy.io/blog) introducing Envoy AI Gateway.
92-
* [Documentation](https://aigateway.envoyproxy.io/docs) for Envoy AI Gateway.
93-
* [Quickstart](https://aigateway.envoyproxy.io/docs/getting-started/) to use Envoy AI Gateway in a few simple steps.
94-
* [Concepts](https://aigateway.envoyproxy.io/docs/concepts/) to understand the architecture and resources of Envoy AI Gateway.
91+
- [Blog](https://aigateway.envoyproxy.io/blog) introducing Envoy AI Gateway.
92+
- [Documentation](https://aigateway.envoyproxy.io/docs) for Envoy AI Gateway.
93+
- [Quickstart](https://aigateway.envoyproxy.io/docs/getting-started/) to use Envoy AI Gateway in a few simple steps.
94+
- [Concepts](https://aigateway.envoyproxy.io/docs/concepts/) to understand the architecture and resources of Envoy AI Gateway.
9595

9696
## Contact
9797

98-
* Slack: Join the [Envoy Slack workspace][] if you're not already a member. Otherwise, use the
98+
- Slack: Join the [Envoy Slack workspace][] if you're not already a member. Otherwise, use the
9999
[Envoy AI Gateway channel][] to start collaborating with the community.
100100

101101
## Get Involved
@@ -113,7 +113,6 @@ which includes information on how to build and test the project.
113113

114114
The proposal of using Envoy Gateway as a [Cloud Native LLM Gateway][Cloud Native LLM Gateway] inspired the initiation of this project.
115115

116-
117116
[meeting]: https://docs.google.com/document/d/10e1sfsF-3G3Du5nBHGmLjXw5GVMqqCvFDqp_O65B0_w/edit?tab=t.0
118117
[Envoy Slack workspace]: https://communityinviter.com/apps/envoyproxy/envoy
119118
[Envoy AI Gateway channel]: https://envoyproxy.slack.com/archives/C07Q4N24VAA

RELEASES.md

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ This document focuses on compatibility concerns of those using Envoy AI Gateway.
2020
It is important to note that the support policy is subject to change at any time. The support policy is as follows:
2121

2222
First of all, there are four areas of compatibility that we are concerned with:
23-
* [Using envoyproxy/ai-gateway as a Go package](#public-go-package).
24-
* [Deploying the Envoy AI Gateway controller through the Kubernetes Custom Resource Definition (CRD)](#Custom-Resource-Definitions).
25-
* [Upgrading the Envoy AI Gateway controller](#Upgrading-the-Envoy-AI-Gateway-controller).
26-
* [Envoy Gateway vs Envoy AI Gateway compatibility](#Envoy-Gateway-vs-Envoy-AI-Gateway-compatibility).
23+
24+
- [Using envoyproxy/ai-gateway as a Go package](#public-go-package).
25+
- [Deploying the Envoy AI Gateway controller through the Kubernetes Custom Resource Definition (CRD)](#Custom-Resource-Definitions).
26+
- [Upgrading the Envoy AI Gateway controller](#Upgrading-the-Envoy-AI-Gateway-controller).
27+
- [Envoy Gateway vs Envoy AI Gateway compatibility](#Envoy-Gateway-vs-Envoy-AI-Gateway-compatibility).
2728

2829
### Public Go package
2930

3031
Since we do not envision this repository ends up as a transitive dependency, i.e. only used as a direct dependency such as in a custom control plane, etc., we assume that any consumer of the project should have the full control over the source code depending on the project. This allows us to declare deprecation and introduce the breaking changes in the version after the next one since they can migrate the code at their discretion. For example, any public API that is marked as deprecated in the version N will be removed in the version N+2. We document how users should migrate to the new API will be documented in the release notes if applicable, but we do not guarantee that the migration path will be provided.
3132

3233
### Custom Resource Definitions
3334

34-
The Custom Resource Definitions (CRDs) are defined in api/${version}/*.go files. The CRDs are versioned as v1alpha1, v1alpha2, etc.
35+
The Custom Resource Definitions (CRDs) are defined in api/${version}/\*.go files. The CRDs are versioned as v1alpha1, v1alpha2, etc.
3536

3637
**For alpha versions**, we simply employ the same deprecation policy as the Go package. In other words, the APIs will be marked as deprecated in the version N and will be removed in the version N+2 but without any guarantee of migration path.
3738

@@ -62,32 +63,34 @@ This section is for maintainers of the project. Let's say we are going to releas
6263
Each non-patch release should start with Release Candidate (RC) phase as follows:
6364

6465
1. First, notify the community that we are going to cut the release candidate and therefore the main branch is frozen.
65-
The main branch should only accept the bug fixes, the security fixes, and documentation changes.
66-
The release candidate should always be cut from the main branch.
66+
The main branch should only accept the bug fixes, the security fixes, and documentation changes.
67+
The release candidate should always be cut from the main branch.
6768

6869
2. Cut the request candidate tag from the main branch. The tag should be v0.50.0-rc1. Assuming the remote `origin` is the main envoyproxy/ai-gateway repository,
69-
the command to cut the tag is:
70-
```
71-
git fetch origin # make sure you have the latest main branch locally.
72-
git tag v0.50.0-rc1 origin/main
73-
git push origin v0.50.0-rc1
74-
```
70+
the command to cut the tag is:
71+
72+
```
73+
git fetch origin # make sure you have the latest main branch locally.
74+
git tag v0.50.0-rc1 origin/main
75+
git push origin v0.50.0-rc1
76+
```
77+
7578
Pushing a tag will trigger the pipeline to build the release candidate image and the helm chart tagged with the release candidate tag.
7679
The release candidate image will be available in the Docker Hub.
7780

7881
3. The release candidate should be tested by the maintainers and the community. If there is any issue, the issue should be fixed in the main branch
79-
and the new rc tag should be created. For example, if there is an issue in the release candidate v0.50.0-rc1, replace `v0.50.0-rc1` with `v0.50.0-rc2`
80-
in the above command and repeat the process.
82+
and the new rc tag should be created. For example, if there is an issue in the release candidate v0.50.0-rc1, replace `v0.50.0-rc1` with `v0.50.0-rc2`
83+
in the above command and repeat the process.
8184

8285
### Release Phase
8386

8487
1. Once the release candidate is stable, we will cut the release from the main branch, assuming that's exactly the same as the last release candidate.
85-
The command to cut the release is exactly the same as the release candidate:
86-
```
87-
git fetch origin # make sure you have the latest main branch locally.
88-
git tag v0.50.0 origin/main
89-
git push origin v0.50.0
90-
```
88+
The command to cut the release is exactly the same as the release candidate:
89+
```
90+
git fetch origin # make sure you have the latest main branch locally.
91+
git tag v0.50.0 origin/main
92+
git push origin v0.50.0
93+
```
9194
Pushing a tag will trigger the pipeline to build the release image and the helm chart tagged with the release tag.
9295
The release image will be available in the Docker Hub.
9396
2. The draft release note will be created in the GitHub repository after the pipeline is completed.
@@ -102,15 +105,15 @@ Each non-patch release should start with Release Candidate (RC) phase as follows
102105
2. Once the PR is merged, the maintainers will decide when to cut the patch release. There's no need to wait for multiple backports to cut the patch release, etc.
103106
Do not cut the tag until all CI passes on the release/v0.50 branch.
104107
3. The patch release should be cut from the `release/v0.50` branch. The command to cut the patch release is exactly the same as normal release:
105-
```
106-
git fetch origin # make sure you have the latest release/v0.50 branch locally.
107-
git tag v0.50.1 origin/release/v0.50
108-
git push origin v0.50.1
109-
```
108+
```
109+
git fetch origin # make sure you have the latest release/v0.50 branch locally.
110+
git tag v0.50.1 origin/release/v0.50
111+
git push origin v0.50.1
112+
```
110113
Pushing a tag will trigger the pipeline to build the patch release image and the helm chart tagged with the patch release tag.
111114
The patch release image will be available in the Docker Hub.
112115
4. The draft release note will be created in the GitHub repository after the pipeline is completed.
113116
Edit the release note nicely by hand to reflect the changes in the release.
114117
5. Update the documentation on the main branch to reflect the new version. This has the following items:
115-
* Change `v0.50.0` to `v0.50.1` in site/versioned_docs/version-0.50 directory.
116-
* Update the site/src/pages/release-notes.md to add the new release note.
118+
- Change `v0.50.0` to `v0.50.1` in site/versioned_docs/version-0.50 directory.
119+
- Update the site/src/pages/release-notes.md to add the new release note.

0 commit comments

Comments
 (0)