Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8463

manual-approval-gate shows wrong error reason

XMLWordPrintable

    • 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

      1. Create an approval task, log in as a user, and approve the approval task
      2. 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)
       

       *

              rh-ee-pbheeman Pavan Mandayam Bheeman
              rhn-support-sselvan Sri Vignesh Selvan
              Sri Vignesh Selvan Sri Vignesh Selvan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: