-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafeas storage for PipelineRun-level provenance #590
Grafeas storage for PipelineRun-level provenance #590
Conversation
pkg/chains/objects/objects.go
Outdated
// Get the TaskRun kind | ||
func (tro *TaskRunObject) GetKind() string { | ||
return tro.GetObjectKind().GroupVersionKind().Kind | ||
// Get the TaskRun GroupVersionKind | ||
func (tro *TaskRunObject) GetGVK() string { | ||
return fmt.Sprintf("%s/%s", tro.GetGroupVersionKind().GroupVersion().String(), tro.GetGroupVersionKind().Kind) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @bcaton85 @lcarva
I am trying to change GetKind to GetGVK for two reasons 1/ previous tro.GetObjectKind().GroupVersionKind().Kind
seems to return empty string in logs, 2/ get the full GVK so that we can reuse it at a lot of places i.e. intoto BuildType and grafeas side.
Please comment if you have any concerns/questions. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, added minor comments. Glad this got worked on. Given i haven't ran this since I don't have a Grafeas backend to test with.
EDIT: Overlooked that this is still in draft, please ignore these comments...
Skipping CI for Draft Pull Request. |
8923651
to
9358ae5
Compare
The following is the coverage report on the affected files.
|
3ba795c
to
34ea01c
Compare
The following is the coverage report on the affected files.
|
This PR is ready for review. Please take a look @wlynch, @jagathprakash, @lcarva when you get a chance. Thank you very much for your time and feedback in advance! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM!
Just some small tweaks.
34ea01c
to
4e6bc2a
Compare
The following is the coverage report on the affected files.
|
Hey @wlynch, |
4e6bc2a
to
855d2ca
Compare
c71e429
to
813639e
Compare
The following is the coverage report on the affected files.
|
/assign @wlynch added you as assignee. Thank you for the thorough review!! |
813639e
to
c38ac52
Compare
The following is the coverage report on the affected files.
|
c38ac52
to
da304fa
Compare
da304fa
to
d1975b2
Compare
The following is the coverage report on the affected files.
|
0bf0171
to
b28271f
Compare
The following is the coverage report on the affected files.
|
tekton-provenance storage option is not supported anymore. Signed-off-by: Chuang Wang <chuangw@google.com> Signed-off-by: Chuang Wang <chuangw@google.com>
b28271f
to
1695aed
Compare
The following is the coverage report on the affected files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wlynch The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…ncd#594) (tektoncd#590)" This reverts commit 83af002.
Changes
Support storing pipelinerun level provenance in grafeas
backend.
There are 3 main aspects of the PR:
level provenance/occurrence in grafeas that attest the same artifact.
individual helpers to extract from results.
GroupVersionKind information.
Signed-off-by: Chuang Wang chuangw@google.com
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes