Skip to content

Commit

Permalink
Add support for OSB parameter schemas (openshift#822)
Browse files Browse the repository at this point in the history
* Add support for OSB parameter schemas

* Regen code

* godoc
  • Loading branch information
pmorie authored and Ville Aikas committed May 31, 2017
1 parent 3e4120e commit 97d278a
Show file tree
Hide file tree
Showing 11 changed files with 586 additions and 72 deletions.
5 changes: 4 additions & 1 deletion pkg/apis/servicecatalog/testing/fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func FuzzerFor(t *testing.T, version schema.GroupVersion, src rand.Source) *fuzz
c.Fuzz(obj)

// Find a codec for converting the object to raw bytes. This is necessary for the
// api version and kind to be correctly set be serialization.
// api version and kind to be correctly set by serialization.
var codec runtime.Codec
switch obj.(type) {
case *api.Pod:
Expand Down Expand Up @@ -229,6 +229,9 @@ func FuzzerFor(t *testing.T, version schema.GroupVersion, src rand.Source) *fuzz
return
}
sp.ExternalMetadata = metadata
sp.AlphaBindingCreateParameterSchema = metadata
sp.AlphaInstanceCreateParameterSchema = metadata
sp.AlphaInstanceUpdateParameterSchema = metadata
},
)
return f
Expand Down
22 changes: 22 additions & 0 deletions pkg/apis/servicecatalog/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,28 @@ type ServicePlan struct {
// user-facing content and display instructions. This field may contain
// platform-specific conventional values.
ExternalMetadata *runtime.RawExtension

// Currently, this field is ALPHA: it may change or disappear at any time
// and its data will not be migrated.
//
// AlphaInstanceCreateParameterSchema is the schema for the parameters
// that may be supplied when provisioning a new Instance on this plan.
AlphaInstanceCreateParameterSchema *runtime.RawExtension

// Currently, this field is ALPHA: it may change or disappear at any time
// and its data will not be migrated.
//
// AlphaInstanceUpdateParameterSchema is the schema for the parameters
// that may be updated once an Instance has been provisioned on this plan.
// This field only has meaning if the ServiceClass is PlanUpdatable.
AlphaInstanceUpdateParameterSchema *runtime.RawExtension

// Currently, this field is ALPHA: it may change or disappear at any time
// and its data will not be migrated.
//
// AlphaBindingCreateParameterSchema is the schema for the parameters that
// may be supplied binding to an Instance on this plan.
AlphaBindingCreateParameterSchema *runtime.RawExtension
}

// InstanceList is a list of instances.
Expand Down
Loading

0 comments on commit 97d278a

Please sign in to comment.