-
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
String interpolation on validation errors when feature flag is not enabled? #7493
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Thanks! I think your fix is correct, could you raise a pr to fix? |
/assign |
chmouel
added a commit
to chmouel/tektoncd-pipeline
that referenced
this issue
Dec 20, 2023
When step action is used in step, and feature flag is not enabled, the error message is not shown correctly and would show a %s. We are now using fmt.Sprintf to format the error message and show the feature flag that need to be enabled properly. Fixes bug tektoncd#7493
chmouel
added a commit
to chmouel/tektoncd-pipeline
that referenced
this issue
Dec 20, 2023
When step action is used in step, and feature flag is not enabled, the error message is not shown correctly and would show a %s. We are now using fmt.Sprintf to format the error message and show the feature flag that need to be enabled properly. apis.ErrGeneric need a empty string as second argument to be able to show the path steps so adding this. Fixes bug tektoncd#7493 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
chmouel
added a commit
to chmouel/tektoncd-pipeline
that referenced
this issue
Dec 20, 2023
When step action is used in step, and feature flag is not enabled, the error message is not shown correctly and would show a %s. We are now using fmt.Sprintf to format the error message and show the feature flag that need to be enabled properly. apis.ErrGeneric need a empty string as second argument to be able to show the path steps so adding this. Fixes bug tektoncd#7493 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
7 tasks
tekton-robot
pushed a commit
that referenced
this issue
Dec 20, 2023
When step action is used in step, and feature flag is not enabled, the error message is not shown correctly and would show a %s. We are now using fmt.Sprintf to format the error message and show the feature flag that need to be enabled properly. apis.ErrGeneric need a empty string as second argument to be able to show the path steps so adding this. Fixes bug #7493 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Actual Behavior
showing this when applying a stepactions and feature flag is not enabled
the %s interpolation is not done
Steps to Reproduce the Problem
Additional Info
Kubernetes version:
Output of
kubectl version
:Notes
I tried to fix this with this patch:
which now output the error properly:
but i am not quite sure if that's the right way, apis.ErrGeneric should do that interpolation already? or ther is more to fix than this across all errors returns?
The text was updated successfully, but these errors were encountered: