Skip to content

Commit

Permalink
Updated Gateway API from v1alpha2 to v1beta1
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Grotz <grotz@google.com>
  • Loading branch information
cgrotz committed Nov 22, 2022
1 parent 82ff90c commit 55cd81a
Show file tree
Hide file tree
Showing 30 changed files with 778 additions and 536 deletions.
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ chmod +x ${CODEGEN_PKG}/generate-groups.sh

${CODEGEN_PKG}/generate-groups.sh all \
github.com/fluxcd/flagger/pkg/client github.com/fluxcd/flagger/pkg/apis \
"flagger:v1beta1 appmesh:v1beta2 appmesh:v1beta1 istio:v1alpha3 smi:v1alpha1 smi:v1alpha2 smi:v1alpha3 gloo/gloo:v1 gloo/gateway:v1 projectcontour:v1 traefik:v1alpha1 kuma:v1alpha1 gatewayapi:v1alpha2 keda:v1alpha1" \
"flagger:v1beta1 appmesh:v1beta2 appmesh:v1beta1 istio:v1alpha3 smi:v1alpha1 smi:v1alpha2 smi:v1alpha3 gloo/gloo:v1 gloo/gateway:v1 projectcontour:v1 traefik:v1alpha1 kuma:v1alpha1 gatewayapi:v1beta1 keda:v1alpha1" \
--output-base "${TEMP_DIR}" \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

Expand Down
2 changes: 1 addition & 1 deletion kustomize/gatewayapi/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ spec:
args:
- -log-level=info
- -include-label-prefix=app.kubernetes.io
- -mesh-provider=gatewayapi:v1alpha2
- -mesh-provider=gatewayapi:v1beta1
- -metrics-server=http://flagger-prometheus:9090
4 changes: 2 additions & 2 deletions pkg/apis/flagger/v1beta1/canary.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

"github.com/fluxcd/flagger/pkg/apis/gatewayapi/v1alpha2"
"github.com/fluxcd/flagger/pkg/apis/gatewayapi/v1beta1"
istiov1alpha3 "github.com/fluxcd/flagger/pkg/apis/istio/v1alpha3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
Expand Down Expand Up @@ -148,7 +148,7 @@ type CanaryService struct {
// Gateways that the HTTPRoute needs to attach itself to.
// Must be specified while using the Gateway API as a provider.
// +optional
GatewayRefs []v1alpha2.ParentReference `json:"gatewayRefs,omitempty"`
GatewayRefs []v1beta1.ParentReference `json:"gatewayRefs,omitempty"`

// Hosts attached to the generated Istio virtual service or Gateway API HTTPRoute.
// Defaults to the service name
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/flagger/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// +k8s:deepcopy-gen=package

// Package v1alpha2 contains API Schema definitions for the
// gateway.networking.k8s.io API group.

package v1alpha2
package v1beta1
Loading

0 comments on commit 55cd81a

Please sign in to comment.