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

Add support for OSB parameter schemas #822

Merged
merged 3 commits into from
May 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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