Skip to content

Commit

Permalink
replace v1beta1 apis with v1 in yaml files (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
izabelacg authored Apr 22, 2024
1 parent 3012937 commit 50f8e95
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"

"sigs.k8s.io/gateway-api/pkg/client/clientset/versioned"
gatewayapi "sigs.k8s.io/gateway-api/pkg/client/clientset/versioned/typed/apis/v1beta1"
gatewayapi "sigs.k8s.io/gateway-api/pkg/client/clientset/versioned/typed/apis/v1"
)

// Clients holds instances of interfaces for making requests to Knative Serving.
Expand Down Expand Up @@ -82,6 +82,6 @@ func newGatewayAPIClients(cfg *rest.Config, namespace string) (*GatewayAPIClient
return nil, err
}
return &GatewayAPIClients{
HTTPRoutes: cs.GatewayV1beta1().HTTPRoutes(namespace),
HTTPRoutes: cs.GatewayV1().HTTPRoutes(namespace),
}, nil
}
4 changes: 2 additions & 2 deletions third_party/contour/gateway-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
name: contour-external
---
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: contour-external
spec:
Expand Down Expand Up @@ -48,7 +48,7 @@ spec:
replicas: 1
---
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: knative-external
namespace: contour-external
Expand Down
4 changes: 2 additions & 2 deletions third_party/contour/gateway-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
name: contour-internal
---
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: contour-internal
spec:
Expand Down Expand Up @@ -50,7 +50,7 @@ spec:
replicas: 1
---
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: knative-local
namespace: contour-internal
Expand Down
2 changes: 1 addition & 1 deletion third_party/istio/300-gateway-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

kind: Gateway
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: knative-local-gateway
namespace: istio-system
Expand Down
2 changes: 1 addition & 1 deletion third_party/istio/300-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

kind: Gateway
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: knative-gateway
namespace: istio-system
Expand Down

0 comments on commit 50f8e95

Please sign in to comment.