Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 97d278a

Browse files
pmorieVille Aikas
authored and
Ville Aikas
committed
Add support for OSB parameter schemas (#822)
* Add support for OSB parameter schemas * Regen code * godoc
1 parent 3e4120e commit 97d278a

11 files changed

+586
-72
lines changed

pkg/apis/servicecatalog/testing/fuzzer.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func FuzzerFor(t *testing.T, version schema.GroupVersion, src rand.Source) *fuzz
168168
c.Fuzz(obj)
169169

170170
// Find a codec for converting the object to raw bytes. This is necessary for the
171-
// api version and kind to be correctly set be serialization.
171+
// api version and kind to be correctly set by serialization.
172172
var codec runtime.Codec
173173
switch obj.(type) {
174174
case *api.Pod:
@@ -229,6 +229,9 @@ func FuzzerFor(t *testing.T, version schema.GroupVersion, src rand.Source) *fuzz
229229
return
230230
}
231231
sp.ExternalMetadata = metadata
232+
sp.AlphaBindingCreateParameterSchema = metadata
233+
sp.AlphaInstanceCreateParameterSchema = metadata
234+
sp.AlphaInstanceUpdateParameterSchema = metadata
232235
},
233236
)
234237
return f

pkg/apis/servicecatalog/types.go

+22
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,28 @@ type ServicePlan struct {
199199
// user-facing content and display instructions. This field may contain
200200
// platform-specific conventional values.
201201
ExternalMetadata *runtime.RawExtension
202+
203+
// Currently, this field is ALPHA: it may change or disappear at any time
204+
// and its data will not be migrated.
205+
//
206+
// AlphaInstanceCreateParameterSchema is the schema for the parameters
207+
// that may be supplied when provisioning a new Instance on this plan.
208+
AlphaInstanceCreateParameterSchema *runtime.RawExtension
209+
210+
// Currently, this field is ALPHA: it may change or disappear at any time
211+
// and its data will not be migrated.
212+
//
213+
// AlphaInstanceUpdateParameterSchema is the schema for the parameters
214+
// that may be updated once an Instance has been provisioned on this plan.
215+
// This field only has meaning if the ServiceClass is PlanUpdatable.
216+
AlphaInstanceUpdateParameterSchema *runtime.RawExtension
217+
218+
// Currently, this field is ALPHA: it may change or disappear at any time
219+
// and its data will not be migrated.
220+
//
221+
// AlphaBindingCreateParameterSchema is the schema for the parameters that
222+
// may be supplied binding to an Instance on this plan.
223+
AlphaBindingCreateParameterSchema *runtime.RawExtension
202224
}
203225

204226
// InstanceList is a list of instances.

0 commit comments

Comments
 (0)