diff --git a/apis/v1alpha1/observabilitypolicy_types.go b/apis/v1alpha1/observabilitypolicy_types.go index cf34a69daa..6e95d28ccf 100644 --- a/apis/v1alpha1/observabilitypolicy_types.go +++ b/apis/v1alpha1/observabilitypolicy_types.go @@ -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'))" diff --git a/config/crd/bases/gateway.nginx.org_observabilitypolicies.yaml b/config/crd/bases/gateway.nginx.org_observabilitypolicies.yaml index cf83c41746..74de2c6402 100644 --- a/config/crd/bases/gateway.nginx.org_observabilitypolicies.yaml +++ b/config/crd/bases/gateway.nginx.org_observabilitypolicies.yaml @@ -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 diff --git a/deploy/crds.yaml b/deploy/crds.yaml index 0da03a8305..51ae8b34bf 100644 --- a/deploy/crds.yaml +++ b/deploy/crds.yaml @@ -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 diff --git a/site/content/reference/api.md b/site/content/reference/api.md index af5cbfaf37..fef67d181f 100644 --- a/site/content/reference/api.md +++ b/site/content/reference/api.md @@ -416,7 +416,7 @@ Tracing

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.

@@ -949,7 +949,7 @@ Tracing

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.