Skip to content

Commit

Permalink
update API version for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
salonichf5 committed Nov 21, 2024
1 parent 852113f commit e18c10a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apis/v1alpha1/observabilitypolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion:warning="The 'v1alpha1' version of ObservabilityPolicy API is deprecated, please migrate to 'v1alpha2'"
// +kubebuilder:deprecatedversion:warning="The 'v1alpha1' version of ObservabilityPolicy API is deprecated, please migrate to 'v1alpha2'."
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories=nginx-gateway-fabric,scope=Namespaced
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
type: date
deprecated: true
deprecationWarning: The 'v1alpha1' version of ObservabilityPolicy API is deprecated,
please migrate to 'v1alpha2'
please migrate to 'v1alpha2'.
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ spec:
type: date
deprecated: true
deprecationWarning: The 'v1alpha1' version of ObservabilityPolicy API is deprecated,
please migrate to 'v1alpha2'
please migrate to 'v1alpha2'.
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down
4 changes: 2 additions & 2 deletions docs/proposals/observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The `ObservabilityPolicy` API is a CRD that is a part of the `gateway.nginx.org`
Below is the Golang API for the `ObservabilityPolicy` API:

```go
package v1alpha1
package v1alpha2

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -148,7 +148,7 @@ type SpanAttribute struct {
Below is an example YAML version of an `ObservabilityPolicy`:

```yaml
apiVersion: gateway.nginx.org/v1alpha1
apiVersion: gateway.nginx.org/v1alpha2
kind: ObservabilityPolicy
metadata:
name: example-observability-policy
Expand Down
2 changes: 1 addition & 1 deletion site/content/how-to/monitoring/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ To enable tracing for the coffee HTTPRoute, create the following policy:

```yaml
kubectl apply -f - <<EOF
apiVersion: gateway.nginx.org/v1alpha1
apiVersion: gateway.nginx.org/v1alpha2
kind: ObservabilityPolicy
metadata:
name: coffee
Expand Down
2 changes: 1 addition & 1 deletion tests/suite/manifests/tracing/policy-multiple.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: gateway.nginx.org/v1alpha1
apiVersion: gateway.nginx.org/v1alpha2
kind: ObservabilityPolicy
metadata:
name: test-observability-policy
Expand Down
2 changes: 1 addition & 1 deletion tests/suite/manifests/tracing/policy-single.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: gateway.nginx.org/v1alpha1
apiVersion: gateway.nginx.org/v1alpha2
kind: ObservabilityPolicy
metadata:
name: test-observability-policy
Expand Down

0 comments on commit e18c10a

Please sign in to comment.