Skip to content

Commit

Permalink
docs(policies): added policy support table for delegated gateway (#1664)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi authored Feb 23, 2024
1 parent bcf611b commit f221a46
Show file tree
Hide file tree
Showing 14 changed files with 105 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/_src/policies/meshaccesslog.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ If you haven't, see the [observability docs](/docs/{{ page.version }}/explore/ob
| `from[].targetRef.kind` | `Mesh` |
{% endif_version %}
{% endtab %}

{% if_version gte:2.6.x %}
{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| ----------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}
{% endif_version %}

{% endtabs %}
{% endif_version %}

Expand Down
7 changes: 7 additions & 0 deletions app/_src/policies/meshcircuitbreaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ target proxies are healthy or not.
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags`|
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| ----------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}
{% endtabs %}

{% endif_version %}
Expand Down
6 changes: 6 additions & 0 deletions app/_src/policies/meshfaultinjection.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ Do **not** combine with [FaultInjection](/docs/{{ page.version }}/policies/fault
| ----------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags`|
| `to[].targetRef.kind` | `Mesh` |
{% endtab %}

{% tab targetRef Delegated Gateway %}

`MeshFaultInjection` isn't supported on delegated gateways.

{% endtab %}
{% endtabs %}

Expand Down
8 changes: 8 additions & 0 deletions app/_src/policies/meshhealthcheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ This mode generates extra traffic to other proxies and services as described in
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags`|
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| --------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}

{% endtabs %}

{% endif_version %}
Expand Down
8 changes: 8 additions & 0 deletions app/_src/policies/meshhttproute.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ depending on where the request coming from and where it's going to.
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags`|
| `to[].targetRef.kind` | `Mesh` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| --------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
| `to[].targetRef.kind` | `MeshService` |
{% endtab %}

{% endtabs %}

{% endif_version %}
Expand Down
8 changes: 8 additions & 0 deletions app/_src/policies/meshloadbalancingstrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ When using this policy, the [localityAwareLoadBalancing](/docs/{{ page.version }
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags`|
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| --------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}

{% endtabs %}

{% endif_version %}
Expand Down
7 changes: 7 additions & 0 deletions app/_src/policies/meshmetric.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ If you haven't already read the [observability docs](/docs/{{ page.version }}/ex
| ----------------------- | --------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| ----------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
{% endtab %}

{% endtabs %}

To learn more about the information in this table, see the [matching docs](/docs/{{ page.version }}/policies/targetref).
Expand Down
7 changes: 7 additions & 0 deletions app/_src/policies/meshproxypatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ Do **not** combine with [Proxy Template](/docs/{{ page.version }}/policies/proxy
| ---------------- | --------------------- |
| `targetRef.kind` | `Mesh`, `MeshGateway` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| --------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
{% endtab %}

{% endtabs %}

{% endif_version %}
Expand Down
9 changes: 9 additions & 0 deletions app/_src/policies/meshratelimit.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ Rate limiting supports an [ExternalService](/docs/{{ page.version }}/policies/ex
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags` |
| `to[].targetRef.kind` | `Mesh` |
{% endtab %}

{% tab targetRef Delegated Gateway %}

{% warning %}
`MeshRateLimit` isn't supported on delegated gateways.
{% endwarning %}

{% endtab %}

{% endtabs %}

{% endif_version %}
Expand Down
10 changes: 10 additions & 0 deletions app/_src/policies/meshretry.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ This policy enables {{site.mesh_product_name}} to know how to behave if there is
| `MeshServiceSubset` |||
{% endif_version %}
{% endtab %}

{% if_version gte:2.6.x %}
{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| --------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}
{% endif_version %}

{% endtabs %}

{% endif_version %}
Expand Down
7 changes: 7 additions & 0 deletions app/_src/policies/meshtcproute.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ depending on where the request is coming from and where it's going to.
| `targetRef.kind` | `Mesh`, `MeshGateway`, `MeshGateway` with listener `tags` |
| `to[].targetRef.kind` | `Mesh` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| --------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
| `to[].targetRef.kind` | `MeshService` |
{% endtab %}
{% endtabs %}

{% endif_version %}
Expand Down
7 changes: 7 additions & 0 deletions app/_src/policies/meshtimeout.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ Do **not** combine with [Timeout policy](/docs/{{ page.version }}/policies/timeo
| `to[].targetRef.kind` | `Mesh` |
| `from[].targetRef.kind` | `Mesh` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| ----------------------- | ------------------------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset`, `MeshHTTPRoute` |
| `to[].targetRef.kind` | `Mesh`, `MeshService` |
{% endtab %}
{% endtabs %}

{% endif_version %}
Expand Down
7 changes: 7 additions & 0 deletions app/_src/policies/meshtrace.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ For HTTP you can also manually forward the following headers:
| ---------------- | --------------------- |
| `targetRef.kind` | `Mesh`, `MeshGateway` |
{% endtab %}

{% tab targetRef Delegated Gateway %}
| `targetRef` | Allowed kinds |
| --------------------- | -------------------------------------------------------- |
| `targetRef.kind` | `Mesh`, `MeshSubset`, `MeshService`, `MeshServiceSubset` |
{% endtab %}

{% endtabs %}

{% endif_version %}
Expand Down
4 changes: 4 additions & 0 deletions app/_src/policies/meshtrafficpermission.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Do **not** combine with [TrafficPermission](/docs/{{ page.version }}/policies/tr
`MeshTrafficPermission` isn't supported on builtin gateways. If applied via
`spec.targetRef.kind: MeshService`, it has no effect.
{% endtab %}

{% tab targetRef Delegated Gateway %}
`MeshTrafficPermission` isn't supported on delegated gateways.
{% endtab %}
{% endtabs %}

If you don't understand this table you should read [matching docs](/docs/{{ page.version }}/policies/targetref).
Expand Down

0 comments on commit f221a46

Please sign in to comment.