Skip to content

Commit 193be55

Browse files
committed
keep the version of observability policy same
1 parent ae04a53 commit 193be55

File tree

12 files changed

+7
-1628
lines changed

12 files changed

+7
-1628
lines changed

apis/v1alpha1/observabilitypolicy_types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ import (
77

88
// +genclient
99
// +kubebuilder:object:root=true
10-
// +kubebuilder:deprecatedversion:warning="The 'v1alpha1' version of ObservabilityPolicy API is deprecated, please migrate to 'v1alpha2'."
10+
// +kubebuilder:storageversion
1111
// +kubebuilder:subresource:status
1212
// +kubebuilder:resource:categories=nginx-gateway-fabric,scope=Namespaced
1313
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
1414
// +kubebuilder:metadata:labels="gateway.networking.k8s.io/policy=direct"
15-
//nolint:lll
1615

1716
// ObservabilityPolicy is a Direct Attached Policy. It provides a way to configure observability settings for
1817
// the NGINX Gateway Fabric data plane. Used in conjunction with the NginxProxy CRD that is attached to the
@@ -48,6 +47,7 @@ type ObservabilityPolicySpec struct {
4847
// Objects must be in the same namespace as the policy.
4948
// Support: HTTPRoute, GRPCRoute.
5049
//
50+
// +kubebuilder:validation:MinItems=1
5151
// +kubebuilder:validation:MaxItems=16
5252
// +kubebuilder:validation:XValidation:message="TargetRef Kind must be: HTTPRoute or GRPCRoute",rule="(self.exists(t, t.kind=='HTTPRoute') || self.exists(t, t.kind=='GRPCRoute'))"
5353
// +kubebuilder:validation:XValidation:message="TargetRef Group must be gateway.networking.k8s.io.",rule="self.all(t, t.group=='gateway.networking.k8s.io')"

apis/v1alpha2/doc.go

-6
This file was deleted.

apis/v1alpha2/observabilitypolicy_types.go

-152
This file was deleted.

apis/v1alpha2/register.go

-41
This file was deleted.

apis/v1alpha2/zz_generated.deepcopy.go

-144
This file was deleted.

0 commit comments

Comments
 (0)