support v1 for sign and verify command#2216
support v1 for sign and verify command#2216Yongxuanzhang wants to merge 1 commit intotektoncd:mainfrom
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
c50b3a2 to
6db0851
Compare
|
/kind feature |
6db0851 to
d5ebe07
Compare
|
/retest |
58ff014 to
4e0f43a
Compare
|
/retest |
| } | ||
|
|
||
| crd := &v1beta1.Pipeline{} | ||
| var crd metav1.Object |
There was a problem hiding this comment.
We are reading the file provided by user as input, we can get the info about version from file content. Correct me if this is wrong. Why we need to take the input from user?
Also --pipeline-version flag does not look make sense for task commands
There was a problem hiding this comment.
naming is hard 😅 I think the idea is to convey which tektoncd/pipeline version we want
but yeah that may be confusing?
any other suggestions? --crd-version perhaps ?
actually forget what i said, you are acutally right we can just autodetect this
There was a problem hiding this comment.
Thanks for the suggestion, but I don't know what would be the best way to do this.
How to read the version info from the file content? Scan the string? How to get the version v1 for this case?
e.g.
# apiVersion: v1beta1
apiVersion: v1
...There was a problem hiding this comment.
--pipeline-version means (Tekton) Pipeline Version, it was suggested in the previous comment of this PR. Maybe rename it to --api-version?Wdyt?
There was a problem hiding this comment.
Replied here #2216 (comment)
It does omit the commented one than in file
3a0dc09 to
ed79e36
Compare
|
@Yongxuanzhang seems like it needs another rebase 🙏🏼 |
This commit adds v1 support for sign and verify. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
ed79e36 to
cc15802
Compare
Just rebased, sorry for the delay 🙏 |
Did you try with some approach for reading it through yaml ? |
Sorry I cannot think of a way which is not error prone. :( Since it is an experiment feature, why don't we start with the easier one then iterate? |
|
Hey @Yongxuanzhang Coming back to this after a long, you can try something like this which we are already using CLI code We have this file load function at https://github.com/tektoncd/cli/blob/main/pkg/file/file.go |
|
@Yongxuanzhang: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Changes
This commit adds v1 support for sign and verify.
close #2214
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make checkmake generatedSee the contribution guide
for more details.
Release Notes