-
Bug
-
Resolution: Done
-
Normal
-
Pipelines 1.20.0
-
1
-
False
-
-
False
-
-
-
Pipelines Sprint Pioneers 37
Description of problem:
Reapproving the approved task as the same user, the error reason is incorrect.
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- Create an approval task, log in as a user, and approve the approval task
- Again, use the same approve command to reapprove the same approval task
Actual results:
Error: failed to approve approvalTask from namespace test: admission webhook "validation.webhook.manual-approval.openshift-pipelines.org" denied the request: User can only update their own approval input
Expected results:
Denied: request user had already approved
Reproducibility (Always/Intermittent/Only Once):
Always
Build Details:
0.7.0
Additional info (Such as Logs, Screenshots, etc):
-> ./tkn-approvaltask approve deployment-pipeline-run-sktsx-approval-gate -n test Error: failed to approve approvalTask from namespace test: admission webhook "validation.webhook.manual-approval.openshift-pipelines.org" denied the request: User can only update their own approval input Usage: tkn-approvaltask approve [flags]Flags: -h, --help help for approve -m, --message string message while approving the approvalTask -n, --namespace string namespace to use (default: from $KUBECONFIG)