Files
kong-customers-api/kong/rest/path-rewrite-bindings.yaml
T
Stéphane Tailland 66565367f1 Build customers-api REST layer (Layer 3), mirroring catalog-api
8 routes over Customer + orders/payments sub-resources, proxying to
classic-models-api. openid-connect with RFC 8693 token exchange to
classic-models-api audience, rate-limiting, proxy-cache, audit-log —
same plugin set and structure as catalog-api's REST surface.

Not deployed: dev/gitrepository.yaml points at a gitea repo that
doesn't exist yet (kong-customers-api.git, 404). No MCP layer yet
either, unlike catalog-api.
2026-08-23 14:34:47 +02:00

144 lines
3.9 KiB
YAML

apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-listcustomers-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-listcustomers
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-listcustomers
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-createcustomer-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-createcustomer
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-createcustomer
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-getcustomer-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-getcustomer
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-getcustomer
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-updatecustomer-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-updatecustomer
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-updatecustomer
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-patchcustomer-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-patchcustomer
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-patchcustomer
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-deletecustomer-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-deletecustomer
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-deletecustomer
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-getcustomerorders-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-getcustomerorders
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-getcustomerorders
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-customers-api-rewrite-getcustomerpayments-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-customers-api-rewrite-getcustomerpayments
targets:
routeRef:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-customers-api-getcustomerpayments