diff --git a/api_test.go b/api_test.go index 1ada551f..872b8e43 100644 --- a/api_test.go +++ b/api_test.go @@ -830,6 +830,12 @@ var _ = Describe("Service Broker API", func() { "context": map[string]interface{}{ "new-context": "new-context-value", }, + "maintenance_info": map[string]interface{}{ + "public": map[string]string{ + "k8s-version": "0.0.1-alpha2", + }, + "private": "just a sha thing", + }, } queryString = "?accept_incomplete=true" }) @@ -888,6 +894,10 @@ var _ = Describe("Service Broker API", func() { }, )) Expect(fakeServiceBroker.UpdateDetails.RawParameters).To(Equal(json.RawMessage(`{"new-param":"new-param-value"}`))) + Expect(fakeServiceBroker.UpdateDetails.MaintenanceInfo).To(Equal(brokerapi.MaintenanceInfo{ + Public: map[string]string{"k8s-version": "0.0.1-alpha2"}, + Private: "just a sha thing"}, + )) }) It("calls update with details with raw parameters", func() { diff --git a/service_broker.go b/service_broker.go index b781740e..711f05ca 100644 --- a/service_broker.go +++ b/service_broker.go @@ -132,11 +132,12 @@ type DeprovisionDetails struct { } type UpdateDetails struct { - ServiceID string `json:"service_id"` - PlanID string `json:"plan_id"` - RawParameters json.RawMessage `json:"parameters,omitempty"` - PreviousValues PreviousValues `json:"previous_values"` - RawContext json.RawMessage `json:"context,omitempty"` + ServiceID string `json:"service_id"` + PlanID string `json:"plan_id"` + RawParameters json.RawMessage `json:"parameters,omitempty"` + PreviousValues PreviousValues `json:"previous_values"` + RawContext json.RawMessage `json:"context,omitempty"` + MaintenanceInfo MaintenanceInfo `json:"maintenance_info,omitempty"` } type PreviousValues struct {