-
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
Remove RunControllerName from the Codebase #6531
Conversation
Hi @jsminem. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
d6060c3
to
0a616fc
Compare
0a616fc
to
abd1849
Compare
c624244
to
6603d57
Compare
The following is the coverage report on the affected files.
|
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.
Thank you @jsminem and welcome to Tekton!
/meow
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerop, vdemeester 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 |
70f27e1
to
b331ced
Compare
e95233b
to
faf67bc
Compare
429d248
to
8d1b4ae
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@@ -194,7 +194,7 @@ func (r *CustomRun) GetStatusCondition() apis.ConditionAccessor { | |||
|
|||
// GetGroupVersionKind implements kmeta.OwnerRefable. | |||
func (*CustomRun) GetGroupVersionKind() schema.GroupVersionKind { | |||
return SchemeGroupVersion.WithKind(pipeline.RunControllerName) | |||
return SchemeGroupVersion.WithKind(pipeline.CustomRunControllerName) |
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 should call this out as a breaking change.
This is changing the GVK from Run
-> CustomRun
, which is going to break anything that is relying on this for GVK references (including owner refs for deletion).
That said, this is also a bug fix for v1beta1.CustomRun since the correct kind is CustomRun
. 😬
We should probably include documentation in the release notes warning people about the bug and how they should go about identifying incorrect references for v1beta1.CustomRun. OwnerRefs are probably going to be the most common - we may want to consider making a small tool to identify bad references.
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.
Ohh okay.. sounds good! I've reverted the changes from CustomRunControllerName
to RunControllerName
. Thanks so much!
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.
@wlynch do you mean we should fix the bug, or fix it and add a note in the release notes?
CustomRun
is a v1beta1
API but I wouldn't feel ok waiting for many months for fixing 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.
@tektoncd/core-collaborators FYI
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.
@wlynch do you mean we should fix the bug, or fix it and add a note in the release notes?
Fix it and call it out in the release notes as a breaking - it's a bug fix, not a feature deprecation so I don't think we need to wait. If the alpha type needs this as Run, then we should fork the type.
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.
That said, I don't see a reason to hold up this PR - we can follow up in another change.
remove RunControllerName from the CodeBase remove RunControllerName from the CodeBase remove RunControllerName from the CodeBase remove RunControllerName from the CodeBase remove RunControllerName from the CodeBase remove RunControllerName from the CodeBase remove RunControllerName from the CodeBase remove RunControllerName from the CodeBase
8d1b4ae
to
e3b3f6d
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/lgtm |
Remove RunControllerName from the CodeBase
Fixes #6528
/kind cleanup
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes