Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mproffitt committed Oct 30, 2023
1 parent cc4ef84 commit ba3ad23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/composite/composition.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Composition struct {
DesiredComposed map[resource.Name]*resource.DesiredComposed

// Input is the information brought in from the function binding
Input *Input
Input InputProvider
}

type InputProvider interface {
Expand All @@ -35,7 +35,7 @@ type InputProvider interface {

type Input struct {
InputProvider
Spec runtime.Object
Spec *runtime.Object
}

// New takes a RunFunctionRequest object and converts it to a Composition
Expand Down Expand Up @@ -65,7 +65,7 @@ type Input struct {
// }
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 ba3ad23

Please sign in to comment.