-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Rename ConfigSource and Source to RefSource
#5831
Conversation
a845dd8
to
736f675
Compare
/kind misc |
/test check-pr-has-kind-label |
@chuangw6: The specified target(s) for
The following commands are available to trigger optional jobs:
Use In response to this:
Instructions 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. |
Please take a look @bobcatfish . Thanks a lot!! |
736f675
to
5dfd647
Compare
5dfd647
to
6024c68
Compare
ConfigSource
to Source
ConfigSource
to RefSource
6024c68
to
28fc897
Compare
/test pull-tekton-pipeline-build-tests |
28fc897
to
0da285b
Compare
Update: I've changed the name to cc @dibyom , @Yongxuanzhang , @wlynch , @jagathprakash , @bobcatfish Thanks! |
Note that technically we do try to give one release of warning for backwards incompatible changes 🙏 This does make it much more annoying to implement but can make the transition a bit smoother |
@tektoncd/core-maintainers, @chuangw6 is looking for reviews on this one! |
The following is the coverage report on the affected files.
|
e836f25
to
0e88ad4
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Good point. Thanks @bobcatfish for the feedback. I've added the old field back and will remove it in future release then. Please take a look. |
0e88ad4
to
8af1c1d
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/assign |
9016112
to
15ae096
Compare
The following is the coverage report on the affected files.
|
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.
Thanks! I think RefSource is a good naming. 😄
// local cluster task and bundle task have empty source for now. This may be changed in future. | ||
if configSource != nil { | ||
t.Errorf("expected configsource is nil, but got %v", configSource) | ||
// local cluster task and bundle task have empty RefSource for now. This may be changed in future. |
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.
Is this mentioned in any issues/design teps?
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.
I should have made this clear in the comment.
bundle
task is meant to say the tasks that are resolved via thetaskref.bundle
approach instead of remote bundle resolver. Since that approach will be deprecated, I think it should be ok to have empty refSource.local cluster task
refers to the tasks living in the local cluster that are resolved by the localcluster resolver viataskref.kind + name + apiversion
approach instead of remote cluster resolver.
Recently, we introduced a new field named provenance in TaskRun/PipelineRun CRD status, and one of its subfields is named `ConfigSource`. Meanwhile, we introduced `source` field into `ResolutionRequest` CRD status to pipe the value. In this commit, we renamed both `configSource` and `source` to `RefSource`. Reasoning: ConfigSource is the SLSA name and ties to a specific SLSA version. It also makes this a leaky abstraction, i.e. we are naming fields in our API after how we want to use them. Additionally, `config` isn't a concept that exists in Tekton. Also the name `source` is too generic. Backward compatibility: This PR doesn't remove the old field. Instead, it keeps the old field while introducing the new name to give a release of warning. The old name will be removed in future release for a smooth transition. Signed-off-by: Chuang Wang <chuangw@google.com>
15ae096
to
56b384a
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerop 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 |
Changes
fixes #6350
/kind misc
Rename ConfigSource and Source to
RefSource
Recently, we introduced a new field named provenance in TaskRun/PipelineRun CRD
status, and one of its subfields is named
ConfigSource
. Meanwhile, we introducedsource
field intoResolutionRequest
CRD status to pipe the value.In this commit, we renamed both
configSource
andsource
toRefSource
.Reasoning:
It also makes this a leaky abstraction, i.e. we are naming fields in our API
after how we want to use them. Additionally,
config
isn't a concept thatexists in Tekton.
source
in ResolutionRequest status is too generic.Backward compatibility: This PR doesn't remove the old field. Instead, it
keeps the old field while introducing the new name to give a release of warning.
The old name will be removed in future release for a smooth transition.
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)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes