Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Ignore templated/generated or external directories for YAML formatting
charts/gateway-helm/
charts/gateway-addons-helm/
charts/gateway-crds-helm/
bin/install.yaml
test/helm/gateway-helm/
test/helm/gateway-addons-helm/
test/helm/gateway-crds-helm/
examples/extension-server/charts/extension-server
site/node_modules/
.vscode/

# exclude release-notes
release-notes/*

# GitHub workflows
.github/workflows/*

# tools/github-actions
tools/github-actions/**
34 changes: 17 additions & 17 deletions examples/admin-console-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ spec:
watch:
type: Namespaces
namespaces:
- default
- app-namespace
- default
- app-namespace

# Admin server configuration
admin:
Expand Down Expand Up @@ -54,11 +54,11 @@ spec:
prometheus:
disable: false
sinks:
- type: OpenTelemetry
openTelemetry:
host: otel-collector.monitoring.svc.cluster.local
port: 4317
protocol: grpc
- type: OpenTelemetry
openTelemetry:
host: otel-collector.monitoring.svc.cluster.local
port: 4317
protocol: grpc

---
# Example: Production configuration with console disabled
Expand All @@ -77,8 +77,8 @@ spec:
watch:
type: Namespaces
namespaces:
- production
- staging
- production
- staging

# Production admin configuration - more restrictive
admin:
Expand Down Expand Up @@ -117,9 +117,9 @@ spec:
watch:
type: Namespaces
namespaces:
- default
- development
- testing
- default
- development
- testing

# Development admin configuration - all features enabled
admin:
Expand Down Expand Up @@ -148,8 +148,8 @@ spec:
prometheus:
disable: false
sinks:
- type: OpenTelemetry
openTelemetry:
host: jaeger-collector.observability.svc.cluster.local
port: 4317
protocol: grpc
- type: OpenTelemetry
openTelemetry:
host: jaeger-collector.observability.svc.cluster.local
port: 4317
protocol: grpc
22 changes: 11 additions & 11 deletions examples/kubernetes/jwt/grpc-jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ spec:
name: yages
jwt:
providers:
- name: example
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
- name: example
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
---
apiVersion: gateway.networking.k8s.io/v1
kind: GRPCRoute
Expand All @@ -21,13 +21,13 @@ metadata:
example: grpc-routing
spec:
parentRefs:
- name: example-gateway
- name: example-gateway
hostnames:
- "grpc-example.com"
- "grpc-example.com"
rules:
- backendRefs:
- group: ""
kind: Service
name: yages
port: 9000
weight: 1
- backendRefs:
- group: ""
kind: Service
name: yages
port: 9000
weight: 1
56 changes: 28 additions & 28 deletions examples/kubernetes/jwt/jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,49 @@ spec:
name: foo
jwt:
providers:
- name: example
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
cacheDuration: 60s
- name: example
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
cacheDuration: 60s
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: foo
spec:
parentRefs:
- name: eg
- name: eg
hostnames:
- "www.example.com"
- "www.example.com"
rules:
- backendRefs:
- group: ""
kind: Service
name: backend
port: 3000
weight: 1
matches:
- path:
type: PathPrefix
value: /foo
- backendRefs:
- group: ""
kind: Service
name: backend
port: 3000
weight: 1
matches:
- path:
type: PathPrefix
value: /foo
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: bar
spec:
parentRefs:
- name: eg
- name: eg
hostnames:
- "www.example.com"
- "www.example.com"
rules:
- backendRefs:
- group: ""
kind: Service
name: backend
port: 3000
weight: 1
matches:
- path:
type: PathPrefix
value: /bar
- backendRefs:
- group: ""
kind: Service
name: backend
port: 3000
weight: 1
matches:
- path:
type: PathPrefix
value: /bar
2 changes: 1 addition & 1 deletion examples/kubernetes/metric/stats-compression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ spec:
metrics:
prometheus:
compression:
type: Gzip ## Supported types are Gzip, Brotli, and Zstd
type: Gzip ## Supported types are Gzip, Brotli, and Zstd
2 changes: 1 addition & 1 deletion examples/standalone/quickstart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ metadata:
spec:
endpoints:
- ip:
address: 0.0.0.0 # this address is for demo purpose only, do not use it in production!
address: 0.0.0.0 # this address is for demo purpose only, do not use it in production!
port: 3000
1 change: 1 addition & 0 deletions examples/static-file-server/manifests/httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ spec:
type: PathPrefix
value: /wasm
---

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ metadata:
name: example-com-tls-policy
spec:
targetRefs:
- group: 'gateway.envoyproxy.io'
- group: "gateway.envoyproxy.io"
kind: Backend
name: backend
validation:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ spec:
- path:
type: PathPrefix
value: /

Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ gatewayClass:
namespace: default
status:
conditions:
- lastTransitionTime: null
message: 'Invalid parametersRef: dynamic_resources cannot be modified'
reason: InvalidParameters
status: "False"
type: Accepted
- lastTransitionTime: null
message: "Invalid parametersRef: dynamic_resources cannot be modified"
reason: InvalidParameters
status: "False"
type: Accepted
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ provider:
watch:
type: Namespaces
namespaces:
- ns-a
- ns-b
- ns-a
- ns-b
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ backends:
spec:
endpoints:
- fqdn:
hostname: '*.foo.com'
hostname: "*.foo.com"
port: 3000
- apiVersion: gateway.envoyproxy.io/v1alpha1
kind: Backend
Expand All @@ -17,7 +17,7 @@ backends:
spec:
endpoints:
- fqdn:
hostname: 'localhost'
hostname: "localhost"
port: 3000
- apiVersion: gateway.envoyproxy.io/v1alpha1
kind: Backend
Expand All @@ -27,7 +27,7 @@ backends:
spec:
endpoints:
- ip:
address: '127.0.0.3'
address: "127.0.0.3"
port: 3000
- apiVersion: gateway.envoyproxy.io/v1alpha1
kind: Backend
Expand Down
Loading
Loading