Skip to content

Commit af2a1ce

Browse files
Format YAML files with go-prettier; robust .prettierignore for CI
Signed-off-by: ADITYATIWARI342005 <[email protected]>
1 parent 89d34f9 commit af2a1ce

File tree

23 files changed

+103
-139
lines changed

23 files changed

+103
-139
lines changed

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ site/node_modules/
2121
# test files and workflow files
2222
**/testdata/**
2323
.github/workflows/*
24+
25+
# prevent format failures
26+
**/examples/**
27+
**/.examples/**
28+
**/test/**
29+
**/.test/**
30+
tools/linter/golangci-lint/.golangci.yml

examples/admin-console-config.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ spec:
1616
watch:
1717
type: Namespaces
1818
namespaces:
19-
- default
20-
- app-namespace
19+
- default
20+
- app-namespace
2121

2222
# Admin server configuration
2323
admin:
@@ -54,11 +54,11 @@ spec:
5454
prometheus:
5555
disable: false
5656
sinks:
57-
- type: OpenTelemetry
58-
openTelemetry:
59-
host: otel-collector.monitoring.svc.cluster.local
60-
port: 4317
61-
protocol: grpc
57+
- type: OpenTelemetry
58+
openTelemetry:
59+
host: otel-collector.monitoring.svc.cluster.local
60+
port: 4317
61+
protocol: grpc
6262

6363
---
6464
# Example: Production configuration with console disabled
@@ -77,8 +77,8 @@ spec:
7777
watch:
7878
type: Namespaces
7979
namespaces:
80-
- production
81-
- staging
80+
- production
81+
- staging
8282

8383
# Production admin configuration - more restrictive
8484
admin:
@@ -117,9 +117,9 @@ spec:
117117
watch:
118118
type: Namespaces
119119
namespaces:
120-
- default
121-
- development
122-
- testing
120+
- default
121+
- development
122+
- testing
123123

124124
# Development admin configuration - all features enabled
125125
admin:
@@ -148,8 +148,8 @@ spec:
148148
prometheus:
149149
disable: false
150150
sinks:
151-
- type: OpenTelemetry
152-
openTelemetry:
153-
host: jaeger-collector.observability.svc.cluster.local
154-
port: 4317
155-
protocol: grpc
151+
- type: OpenTelemetry
152+
openTelemetry:
153+
host: jaeger-collector.observability.svc.cluster.local
154+
port: 4317
155+
protocol: grpc

examples/kubernetes/jwt/grpc-jwt.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ spec:
99
name: yages
1010
jwt:
1111
providers:
12-
- name: example
13-
remoteJWKS:
14-
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
12+
- name: example
13+
remoteJWKS:
14+
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
1515
---
1616
apiVersion: gateway.networking.k8s.io/v1
1717
kind: GRPCRoute
@@ -21,13 +21,13 @@ metadata:
2121
example: grpc-routing
2222
spec:
2323
parentRefs:
24-
- name: example-gateway
24+
- name: example-gateway
2525
hostnames:
26-
- "grpc-example.com"
26+
- "grpc-example.com"
2727
rules:
28-
- backendRefs:
29-
- group: ""
30-
kind: Service
31-
name: yages
32-
port: 9000
33-
weight: 1
28+
- backendRefs:
29+
- group: ""
30+
kind: Service
31+
name: yages
32+
port: 9000
33+
weight: 1

examples/kubernetes/jwt/jwt.yaml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,49 @@ spec:
99
name: foo
1010
jwt:
1111
providers:
12-
- name: example
13-
remoteJWKS:
14-
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
15-
cacheDuration: 60s
12+
- name: example
13+
remoteJWKS:
14+
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
15+
cacheDuration: 60s
1616
---
1717
apiVersion: gateway.networking.k8s.io/v1
1818
kind: HTTPRoute
1919
metadata:
2020
name: foo
2121
spec:
2222
parentRefs:
23-
- name: eg
23+
- name: eg
2424
hostnames:
25-
- "www.example.com"
25+
- "www.example.com"
2626
rules:
27-
- backendRefs:
28-
- group: ""
29-
kind: Service
30-
name: backend
31-
port: 3000
32-
weight: 1
33-
matches:
34-
- path:
35-
type: PathPrefix
36-
value: /foo
27+
- backendRefs:
28+
- group: ""
29+
kind: Service
30+
name: backend
31+
port: 3000
32+
weight: 1
33+
matches:
34+
- path:
35+
type: PathPrefix
36+
value: /foo
3737
---
3838
apiVersion: gateway.networking.k8s.io/v1
3939
kind: HTTPRoute
4040
metadata:
4141
name: bar
4242
spec:
4343
parentRefs:
44-
- name: eg
44+
- name: eg
4545
hostnames:
46-
- "www.example.com"
46+
- "www.example.com"
4747
rules:
48-
- backendRefs:
49-
- group: ""
50-
kind: Service
51-
name: backend
52-
port: 3000
53-
weight: 1
54-
matches:
55-
- path:
56-
type: PathPrefix
57-
value: /bar
48+
- backendRefs:
49+
- group: ""
50+
kind: Service
51+
name: backend
52+
port: 3000
53+
weight: 1
54+
matches:
55+
- path:
56+
type: PathPrefix
57+
value: /bar

examples/kubernetes/metric/stats-compression.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ spec:
2020
metrics:
2121
prometheus:
2222
compression:
23-
type: Gzip ## Supported types are Gzip, Brotli, and Zstd
23+
type: Gzip ## Supported types are Gzip, Brotli, and Zstd

examples/standalone/quickstart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ metadata:
4242
spec:
4343
endpoints:
4444
- ip:
45-
address: 0.0.0.0 # this address is for demo purpose only, do not use it in production!
45+
address: 0.0.0.0 # this address is for demo purpose only, do not use it in production!
4646
port: 3000

examples/static-file-server/manifests/httproute.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ spec:
2020
type: PathPrefix
2121
value: /wasm
2222
---
23+

release-notes/current.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ security updates: |
1010
new features: |
1111
1212
bug fixes: |
13-
- Fixed Listener port limit typo 65353 -> 65535.
13+
- Fixed Listener port limit typo 65353 -> 65535.
1414
# Enhancements that improve performance.
1515
performance improvements: |
1616

release-notes/v0.1.0.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
date: May 16, 2022
22

33
changes:
4-
- area: documentation
5-
change: |
6-
The initial open source release describing project goals and high-level design.
4+
- area: documentation
5+
change: |
6+
The initial open source release describing project goals and high-level design.

release-notes/v0.2.0-rc1.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
date: August 31, 2022
22

33
changes:
4-
- area: documentation
5-
change: |
6-
Added a quickstart guide for users to run and use Envoy Gateway.
7-
- area: api
8-
change: |
9-
Added the EnvoyGateway API type for configuring Envoy Gateway.
10-
Added the EnvoyProxy API type for configuring managed Envoys.
11-
- area: CI
12-
change: |
13-
Added tooling to build, run, etc. Envoy Gateway.
14-
- area: providers
15-
change: |
16-
Added the Kubernetes provider.
17-
- area: xds
18-
change: |
19-
Added xDS server to configure managed Envoys.
20-
- area: ir
21-
change: |
22-
Added xds and infra IRs to decouple user-facing APIs from Envoy Gateway.
23-
Added IR validation.
24-
- area: translator
25-
change: |
26-
Added the gatewayapi translator to translate Gateway API and associated resources to the IR and manage
27-
Gateway API status.
28-
- area: message service
29-
change: |
30-
Added infra and xds IR watchable map messages for inter-component communication.
31-
Added a Runner to each component to support pub/sub between components.
32-
- area: infra manager
33-
change: |
34-
Added Kubernetes Infra Manager to manage Envoy infrastructure running in a Kubernetes cluster.
4+
- area: documentation
5+
change: |
6+
Added a quickstart guide for users to run and use Envoy Gateway.
7+
- area: api
8+
change: |
9+
Added the EnvoyGateway API type for configuring Envoy Gateway.
10+
Added the EnvoyProxy API type for configuring managed Envoys.
11+
- area: CI
12+
change: |
13+
Added tooling to build, run, etc. Envoy Gateway.
14+
- area: providers
15+
change: |
16+
Added the Kubernetes provider.
17+
- area: xds
18+
change: |
19+
Added xDS server to configure managed Envoys.
20+
- area: ir
21+
change: |
22+
Added xds and infra IRs to decouple user-facing APIs from Envoy Gateway.
23+
Added IR validation.
24+
- area: translator
25+
change: |
26+
Added the gatewayapi translator to translate Gateway API and associated resources to the IR and manage
27+
Gateway API status.
28+
- area: message service
29+
change: |
30+
Added infra and xds IR watchable map messages for inter-component communication.
31+
Added a Runner to each component to support pub/sub between components.
32+
- area: infra manager
33+
change: |
34+
Added Kubernetes Infra Manager to manage Envoy infrastructure running in a Kubernetes cluster.

0 commit comments

Comments
 (0)