From 1f3141e605c357e5cd5493c2deed8d0eff9ef50f Mon Sep 17 00:00:00 2001 From: nhyatt Date: Wed, 10 Jul 2024 08:51:45 -0500 Subject: [PATCH] Adds endpoints to binding response/ --- domain/service_broker.go | 1 + handlers/bind.go | 2 ++ handlers/get_binding.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/domain/service_broker.go b/domain/service_broker.go index 80220769..0e0806c6 100644 --- a/domain/service_broker.go +++ b/domain/service_broker.go @@ -198,6 +198,7 @@ type Binding struct { RouteServiceURL string `json:"route_service_url"` BackupAgentURL string `json:"backup_agent_url,omitempty"` VolumeMounts []VolumeMount `json:"volume_mounts"` + Endpoints []Endpoint `json:"endpoints,omitempty"` } type GetBindingSpec struct { diff --git a/handlers/bind.go b/handlers/bind.go index 1047edcf..c7006ee4 100644 --- a/handlers/bind.go +++ b/handlers/bind.go @@ -88,6 +88,7 @@ func (h APIHandler) Bind(w http.ResponseWriter, req *http.Request) { RouteServiceURL: binding.RouteServiceURL, VolumeMounts: binding.VolumeMounts, BackupAgentURL: binding.BackupAgentURL, + Endpoints: binding.Endpoints, }) return } @@ -138,5 +139,6 @@ func (h APIHandler) Bind(w http.ResponseWriter, req *http.Request) { RouteServiceURL: binding.RouteServiceURL, VolumeMounts: binding.VolumeMounts, BackupAgentURL: binding.BackupAgentURL, + Endpoints: binding.Endpoints, }) } diff --git a/handlers/get_binding.go b/handlers/get_binding.go index 675a2b54..d7edc008 100644 --- a/handlers/get_binding.go +++ b/handlers/get_binding.go @@ -59,8 +59,8 @@ func (h APIHandler) GetBinding(w http.ResponseWriter, req *http.Request) { SyslogDrainURL: binding.SyslogDrainURL, RouteServiceURL: binding.RouteServiceURL, VolumeMounts: binding.VolumeMounts, + Endpoints: binding.Endpoints, }, Parameters: binding.Parameters, - Endpoints: binding.Endpoints, }) }