Skip to content

Commit

Permalink
remove reference to HTTPPipeline in doc (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
localvar committed Jul 25, 2022
1 parent 085130a commit c992926
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 102 deletions.
2 changes: 1 addition & 1 deletion doc/reference/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The drivers need to offer notifying change periodically, and operations to the e

### TrafficController

TrafficController handles the lifecycle of HTTPServer and HTTPPipeline and their relationship. It manages the resource in a namespaced way. HTTPServer accepts incoming traffic and routes it to HTTPPipelines in the same namespace. Most other controllers could handle traffic by leverage the ability of TrafficController..
TrafficController handles the lifecycle of Traffic Gates (like HTTPServer) and Pipeline and their relationship. It manages the resource in a namespaced way. Traffic gates accepts incoming traffic and routes it to Pipelines in the same namespace. Most other controllers could handle traffic by leverage the ability of TrafficController..

### RawConfigTrafficController

Expand Down
4 changes: 2 additions & 2 deletions doc/reference/wasmhost.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ The `wasm-pipeline` configuration is (we will adjust the value of `maxConcurrenc
```bash
$ echo '
name: wasm-pipeline
kind: HTTPPipeline
kind: Pipeline
flow:
- filter: wasm
filters:
Expand All @@ -301,7 +301,7 @@ The `mock-pipeline` configuration is:
```bash
$ echo '
name: mock-pipeline
kind: HTTPPipeline
kind: Pipeline
flow:
- filter: mock
filters:
Expand Down
64 changes: 0 additions & 64 deletions example/config/http-pipeline-orchestration.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: http-pipeline-example
kind: HTTPPipeline
kind: Pipeline

# Built-in labels are `END` which can't be used by filters.
flow:
- filter: validator
jumpIf: { invalid: END }
# - filter: fallback
- filter: rateLimiter
- filter: requestAdaptor
- filter: proxy
jumpIf: { fallback: END }
jumpIf: { clientError: END }
- filter: responseAdaptor

filters:
Expand Down Expand Up @@ -70,13 +69,6 @@ filters:
add: {}
- name: proxy
kind: Proxy
failureCodes: [500, 501]
fallback:
forCodes: true
forCircuitBreaker: false
mockCode: 200
mockHeader: {X-Fallback: yes}
mockBody: '{"message": "Backend failed, try it later."}'
mirrorPool:
servers:
- url: http:https://127.0.0.1:9091
Expand All @@ -88,20 +80,19 @@ filters:
headers:
X-Filter:
exact: mirror
candidatePools:
- servers:
- url: http:https://127.0.0.1:9093
- url: http:https://127.0.0.1:9094
loadBalance:
policy: random
headerHashKey: ""
memoryCache: null
filter:
headers:
X-Filter:
exact: candidate
mainPool:
serviceRegistry: nacos-service-registry-example
pools:
- servers:
- url: http:https://127.0.0.1:9093
- url: http:https://127.0.0.1:9094
loadBalance:
policy: random
headerHashKey: ""
memoryCache: null
filter:
headers:
X-Filter:
exact: candidate
- serviceRegistry: nacos-service-registry-example
serviceName: service-001
serversTags: ["v2"]
servers:
Expand All @@ -116,16 +107,6 @@ filters:
loadBalance:
policy: roundRobin
headerHashKey: X-User-Id
# memoryCache:
# expiration: 10s
# maxEntryBytes: 4096
# size: 100
# codes:
# - 200
# - 201
# methods:
# - GET
# - HEAD
compression:
minLength: 1024
- name: responseAdaptor
Expand Down
2 changes: 1 addition & 1 deletion example/config/remote-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: remote-pipeline
kind: HTTPPipeline
kind: Pipeline

filters:
- name: remoteFilter
Expand Down

0 comments on commit c992926

Please sign in to comment.