Skip to content

Commit

Permalink
feat(envoygateway): Bind V1 gateway structs to v1beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Apr 2, 2024
1 parent a437680 commit c92a6b9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions internal/envoygateway/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@ func init() {
panic(err)
}
// Add Gateway API types.
if err := gwapiv1.AddToScheme(scheme); err != nil {
panic(err)
}
//if err := gwapiv1.AddToScheme(scheme); err != nil {

Check failure on line 38 in internal/envoygateway/scheme.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
// panic(err)
//}
scheme.AddKnownTypes(gwapiv1b1.SchemeGroupVersion,
&gwapiv1.Gateway{},
&gwapiv1.GatewayClass{},
&gwapiv1.GatewayClassList{},
&gwapiv1.GatewayList{},
&gwapiv1.HTTPRoute{},
&gwapiv1.HTTPRouteList{},
)
if err := gwapiv1b1.AddToScheme(scheme); err != nil {
panic(err)
}
Expand Down

0 comments on commit c92a6b9

Please sign in to comment.