-
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
fix: add stepaction as a valid kind in the hub resolver #8635
fix: add stepaction as a valid kind in the hub resolver #8635
Conversation
/kind bug |
5c8232f
to
5bc1e64
Compare
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.
One optional suggestion. Looks good to me though!
if kind != "task" && kind != "pipeline" && kind != "stepaction" { | ||
return errors.New("kind param must be either a task, pipeline or a stepaction") |
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.
Optional suggestion: I like they way this was addressed in the Cluster Resolver, with a const list of supportedKinds
. Any objection to following that pattern?
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.
Agreed with @aThorp96 but it could be done in a follow-up as well.
cc @afrittoli
8ee6b90
to
4419884
Compare
/retest |
4419884
to
837f7c4
Compare
The hub resolver should consider StepAction as a valid kind. This change ensures that the controller considers a stepaction as a valid kind resolving through a hub resolver. test: validate step actions in hub resolver
837f7c4
to
41ff747
Compare
The following is the coverage report on the affected files.
|
@aThorp96 @vdemeester I have added a list of supported types as you suggested, should be good to merge but let me know if there is anything else to add |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aThorp96, 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 |
/lgtm |
@aThorp96: changing LGTM is restricted to collaborators 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. |
/lgtm |
Changes
fixes #8634
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