Skip to content

Commit

Permalink
random
Browse files Browse the repository at this point in the history
  • Loading branch information
mproffitt committed Oct 30, 2023
1 parent 78e6d3c commit aea68fc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/composite/composition.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ type Composition struct {
Input Input
}

type Input struct {
type InputProvider interface {
runtime.Object
}

type Input struct {
InputProvider
Spec runtime.Object
}

Expand Down Expand Up @@ -63,9 +67,9 @@ type Input struct {
// response.Normal(rsp, "Successful run")
// return rsp, nil
// }
func New(req *fnv1beta1.RunFunctionRequest, input Input) (c *Composition, err error) {
func New(req *fnv1beta1.RunFunctionRequest, input InputProvider) (c *Composition, err error) {
c = &Composition{
Input: input,
Input: input.(Input),
}

if c.DesiredComposite, err = request.GetDesiredCompositeResource(req); err != nil {
Expand Down

0 comments on commit aea68fc

Please sign in to comment.