Commit Graph

7 Commits

Author SHA1 Message Date
Alex Leong 0f5145118b
update codegen to use kube::codegen (#11722)
Recent versions of the code-generator package have replaced the `generate-groups.sh` script that we use to generate client-go bindings for custom resource types with a new script called `kube_codegen.sh`.  This PR updates our `update-codgen.sh` script to use `kube_codegen.sh` instead of `generate-groups.sh`.

Signed-off-by: Alex Leong <alex@buoyant.io>
2023-12-13 11:36:27 -08:00
Kevin Ingelman 32831ba501
Update Go codegen for httproute timeout fields (#11164)
In #11008 I added Go support for the `timeouts` field in the
`HTTPRouteRule` struct. That used Go's built-in `time.Duration` type,
but based on my reading of kubernetes-sigs/gateway-api#2013, we should
instead by using apimachinery's `metav1.Duration` type.

Signed-off-by: Kevin Ingelman <ki@buoyant.io>
2023-07-24 17:57:53 -05:00
Kevin Ingelman b02a6a0d83
Add codegen for httproute v1beta3 (#11008)
Add go client codegen for HttpRoute v1beta3. This will be necessary for any of the go controllers (i.e. metrics-api) or go CLI commands to interact with HttpRoute v1beta3 resources in kubernetes.

Signed-off-by: Kevin Ingelman <ki@buoyant.io>
2023-06-14 15:01:56 -07:00
Aleksandr Tarasov 2c43d74095
Fix policy API json mapping (#9329)
The naming of policy API fields uses underscores but the JSON
spec in k8s uses camel case. This leads to nil values while working
with the SharedInformerFactory API.

Signed-off-by: aatarasoff <aatarasoff@gmail.com>
2022-09-12 08:07:36 -07:00
Risha Mars 78cc324a15
Add HTTPRoute to known types to facilitate serialization (#9288)
Add HTTPRoute to known types to facilitate serialization

Signed-off-by: Risha Mars <mars@buoyant.io>
Co-authored-by: Oliver Gould <ver@buoyant.io>
2022-08-30 10:28:30 -06:00
Alex Leong 21bf27e541
Add codegen for httproute (#8994)
Add go client codegen for HttpRoute.  This will be necessary for any of the go controllers (i.e. metrics-api) or go CLI commands to interact with HttpRoute resources in kubernetes.

Signed-off-by: Alex Leong <alex@buoyant.io>
Co-authored-by: Oliver Gould <ver@buoyant.io>
2022-07-28 13:35:14 -07:00
Oliver Gould 172e877e3e
Add Go types for Policy CRDs (#8171)
c1a1430d added new policy CRDs: `AuthoriationPolicy`,
`MeshTLSAuthentication` and `NetworkAuthentiction` with a controller
implemented in Rust.

This change adds Go types for these resources so that they may be
accessed from the CLI, etc.

Co-authored-by: Zahari Dichev zaharidichev@gmail.com
Signed-off-by: Zahari Dichev zaharidichev@gmail.com
Signed-off-by: Oliver Gould <ver@buoyant.io>
2022-03-31 09:30:46 -07:00