Skip to content

Commit

Permalink
Fix AuthorizationPolicy docs to indicate that targetRef cannot includ…
Browse files Browse the repository at this point in the history
…e a namespace (#1928)

Signed-off-by: Alex Leong <[email protected]>
  • Loading branch information
adleong authored Feb 27, 2025
1 parent cba6df5 commit 0d3c368
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
3 changes: 1 addition & 2 deletions linkerd.io/content/2-edge/reference/authorization-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,13 @@ applies. The API objects supported are:
matching the HTTPRoute.
- A namespace (`kind: Namespace`), indicating that the AuthorizationPolicy
applies to all traffic to all [Servers] and [HTTPRoutes] defined in the
namespace.
namespace. This may only be the namespace of the AuthorizationPolicy.

{{< keyval >}}
| field| value |
|------|-------|
| `group`| Group is the group of the target resource. For namespace kinds, this should be omitted.|
| `kind`| Kind is kind of the target resource.|
| `namespace`| The namespace of the target resource. When unspecified (or empty string), this refers to the local namespace of the policy.|
| `name`| Name is the name of the target resource.|
{{< /keyval >}}

Expand Down
3 changes: 1 addition & 2 deletions linkerd.io/content/2.12/reference/authorization-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,13 @@ applies. The API objects supported are:
matching the HTTPRoute.
- A namespace (`kind: Namespace`), indicating that the AuthorizationPolicy
applies to all traffic to all [Servers] and [HTTPRoutes] defined in the
namespace.
namespace. This may only be the namespace of the AuthorizationPolicy.

{{< keyval >}}
| field| value |
|------|-------|
| `group`| Group is the group of the target resource. For namespace kinds, this should be omitted.|
| `kind`| Kind is kind of the target resource.|
| `namespace`| The namespace of the target resource. When unspecified (or empty string), this refers to the local namespace of the policy.|
| `name`| Name is the name of the target resource.|
{{< /keyval >}}

Expand Down
3 changes: 1 addition & 2 deletions linkerd.io/content/2.13/reference/authorization-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,13 @@ applies. The API objects supported are:
matching the HTTPRoute.
- A namespace (`kind: Namespace`), indicating that the AuthorizationPolicy
applies to all traffic to all [Servers] and [HTTPRoutes] defined in the
namespace.
namespace. This may only be the namespace of the AuthorizationPolicy.

{{< keyval >}}
| field| value |
|------|-------|
| `group`| Group is the group of the target resource. For namespace kinds, this should be omitted.|
| `kind`| Kind is kind of the target resource.|
| `namespace`| The namespace of the target resource. When unspecified (or empty string), this refers to the local namespace of the policy.|
| `name`| Name is the name of the target resource.|
{{< /keyval >}}

Expand Down
3 changes: 1 addition & 2 deletions linkerd.io/content/2.14/reference/authorization-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,13 @@ applies. The API objects supported are:
matching the HTTPRoute.
- A namespace (`kind: Namespace`), indicating that the AuthorizationPolicy
applies to all traffic to all [Servers] and [HTTPRoutes] defined in the
namespace.
namespace. This may only be the namespace of the AuthorizationPolicy.

{{< keyval >}}
| field| value |
|------|-------|
| `group`| Group is the group of the target resource. For namespace kinds, this should be omitted.|
| `kind`| Kind is kind of the target resource.|
| `namespace`| The namespace of the target resource. When unspecified (or empty string), this refers to the local namespace of the policy.|
| `name`| Name is the name of the target resource.|
{{< /keyval >}}

Expand Down
3 changes: 1 addition & 2 deletions linkerd.io/content/2.15/reference/authorization-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,13 @@ applies. The API objects supported are:
matching the HTTPRoute.
- A namespace (`kind: Namespace`), indicating that the AuthorizationPolicy
applies to all traffic to all [Servers] and [HTTPRoutes] defined in the
namespace.
namespace. This may only be the namespace of the AuthorizationPolicy.

{{< keyval >}}
| field| value |
|------|-------|
| `group`| Group is the group of the target resource. For namespace kinds, this should be omitted.|
| `kind`| Kind is kind of the target resource.|
| `namespace`| The namespace of the target resource. When unspecified (or empty string), this refers to the local namespace of the policy.|
| `name`| Name is the name of the target resource.|
{{< /keyval >}}

Expand Down
3 changes: 1 addition & 2 deletions linkerd.io/content/2.16/reference/authorization-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,13 @@ applies. The API objects supported are:
matching the HTTPRoute.
- A namespace (`kind: Namespace`), indicating that the AuthorizationPolicy
applies to all traffic to all [Servers] and [HTTPRoutes] defined in the
namespace.
namespace. This may only be the namespace of the AuthorizationPolicy.

{{< keyval >}}
| field| value |
|------|-------|
| `group`| Group is the group of the target resource. For namespace kinds, this should be omitted.|
| `kind`| Kind is kind of the target resource.|
| `namespace`| The namespace of the target resource. When unspecified (or empty string), this refers to the local namespace of the policy.|
| `name`| Name is the name of the target resource.|
{{< /keyval >}}

Expand Down
3 changes: 1 addition & 2 deletions linkerd.io/content/2.17/reference/authorization-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,13 @@ applies. The API objects supported are:
matching the HTTPRoute.
- A namespace (`kind: Namespace`), indicating that the AuthorizationPolicy
applies to all traffic to all [Servers] and [HTTPRoutes] defined in the
namespace.
namespace. This may only be the namespace of the AuthorizationPolicy.

{{< keyval >}}
| field| value |
|------|-------|
| `group`| Group is the group of the target resource. For namespace kinds, this should be omitted.|
| `kind`| Kind is kind of the target resource.|
| `namespace`| The namespace of the target resource. When unspecified (or empty string), this refers to the local namespace of the policy.|
| `name`| Name is the name of the target resource.|
{{< /keyval >}}

Expand Down

0 comments on commit 0d3c368

Please sign in to comment.