Skip to content

Commit

Permalink
Adds endpoints to binding response/
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSp1der committed Jul 10, 2024
1 parent cdd667b commit 1f3141e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions domain/service_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions handlers/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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,
})
}
2 changes: 1 addition & 1 deletion handlers/get_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}

0 comments on commit 1f3141e

Please sign in to comment.