-
Notifications
You must be signed in to change notification settings - Fork 249
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
support v1 for sign and verify command #2216
base: main
Are you sure you want to change the base?
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.
Needs 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 |
@@ -70,7 +73,13 @@ or using kms | |||
return err | |||
} | |||
|
|||
crd := &v1beta1.Pipeline{} | |||
var crd metav1.Object |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 [email protected]
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 |
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 check
make generated
See the contribution guide
for more details.
Release Notes