Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ObservabilityPolicy TargetRefs documentation #2202

Merged
merged 1 commit into from
Jul 5, 2024
Merged
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
2 changes: 1 addition & 1 deletion apis/v1alpha1/observabilitypolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type ObservabilityPolicySpec struct {

// TargetRefs identifies the API object(s) to apply the policy to.
// Objects must be in the same namespace as the policy.
// Support: HTTPRoute
// Support: HTTPRoute, GRPCRoute.
//
// +kubebuilder:validation:MaxItems=16
// +kubebuilder:validation:XValidation:message="TargetRef Kind must be: HTTPRoute or GRPCRoute",rule="(self.exists(t, t.kind=='HTTPRoute') || self.exists(t, t.kind=='GRPCRoute'))"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
description: |-
TargetRefs identifies the API object(s) to apply the policy to.
Objects must be in the same namespace as the policy.
Support: HTTPRoute
Support: HTTPRoute, GRPCRoute.
items:
description: |-
LocalPolicyTargetReference identifies an API object to apply a direct or
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ spec:
description: |-
TargetRefs identifies the API object(s) to apply the policy to.
Objects must be in the same namespace as the policy.
Support: HTTPRoute
Support: HTTPRoute, GRPCRoute.
items:
description: |-
LocalPolicyTargetReference identifies an API object to apply a direct or
Expand Down
4 changes: 2 additions & 2 deletions site/content/reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ Tracing
<td>
<p>TargetRefs identifies the API object(s) to apply the policy to.
Objects must be in the same namespace as the policy.
Support: HTTPRoute</p>
Support: HTTPRoute, GRPCRoute.</p>
</td>
</tr>
</table>
Expand Down Expand Up @@ -949,7 +949,7 @@ Tracing
<td>
<p>TargetRefs identifies the API object(s) to apply the policy to.
Objects must be in the same namespace as the policy.
Support: HTTPRoute</p>
Support: HTTPRoute, GRPCRoute.</p>
</td>
</tr>
</tbody>
Expand Down
Loading