Skip to content

Commit

Permalink
Tmp more logging (#4)
Browse files Browse the repository at this point in the history
* temp commit with more logging to get understanding of the resource structure

* fixed unit tests

* fixing unit tests

* Store entire taskrun as recipe.arguments.

* Store spec as well, not just status
  • Loading branch information
Fredrik Skogman committed May 17, 2021
1 parent f675af7 commit a478aa7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/chains/formats/intotoite6.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ func (i *InTotoIte6) CreatePayload(l *zap.SugaredLogger, obj interface{}) (inter
l.Infof("ITE6: No resources found")
}

l.Infof("ITE6: Store TaskRun body")
m := map[string]interface{}{}
m["status"] = tr.Status
m["spec"] = tr.Spec
att.Recipe.Arguments = m

return att, nil
}

Expand Down

0 comments on commit a478aa7

Please sign in to comment.