Skip to content

Commit

Permalink
gateway: Upgrade API version
Browse files Browse the repository at this point in the history
This is to avoid the below warning

```
W0205 12:29:06.703289  146168 warnings.go:70] The v1alpha2 version of ReferenceGrant has been deprecated and will be removed in a future release of the API. Please upgrade to v1beta1.
```

Signed-off-by: Tam Mach <tam.mach@cilium.io>
  • Loading branch information
sayboras committed Feb 6, 2024
1 parent b0955d6 commit a960878
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sysdump/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,25 +158,25 @@ var (
gatewayClass = schema.GroupVersionResource{
Group: "gateway.networking.k8s.io",
Resource: "gatewayclasses",
Version: "v1beta1",
Version: "v1",
}

gateway = schema.GroupVersionResource{
Group: "gateway.networking.k8s.io",
Resource: "gateways",
Version: "v1beta1",
Version: "v1",
}

referenceGrant = schema.GroupVersionResource{
Group: "gateway.networking.k8s.io",
Resource: "referencegrants",
Version: "v1alpha2",
Version: "v1beta1",
}

httpRoute = schema.GroupVersionResource{
Group: "gateway.networking.k8s.io",
Resource: "httproutes",
Version: "v1beta1",
Version: "v1",
}

tlsRoute = schema.GroupVersionResource{
Expand Down

0 comments on commit a960878

Please sign in to comment.