-
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
base: main
Are you sure you want to change the base?
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
[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 |
5bc1e64
to
8ee6b90
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
8ee6b90
to
4419884
Compare
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