Closed brainbug95 closed 5 months ago
it looks like you have not assigned it to anyone so that means no-one will be able to approve it. Here is sample pipeline https://github.com/automatiko-io/automatiko-approval-task/blob/main/k8s/v1beta1/test/pipeline-single.yaml#L18
and here you can see the different options https://github.com/automatiko-io/automatiko-approval-task?tab=readme-ov-file#parameters and this section can also be useful https://github.com/automatiko-io/automatiko-approval-task?tab=readme-ov-file#my-approval-tasks
Hi,
i had approvers configured beforehand which did not work so I removed them. I added them again but still no task is found.
- name: approval
runAfter: ["pre-deploy"]
taskRef:
apiVersion: tekton.automatiko.io/v1beta1
kind: ApprovalTask
name: approvaltask
params:
- name: pipeline
value: "$(context.pipelineRun.name)"
- name: description
value: "Sample approval from pipeline $(context.pipeline.name)"
- name: approvers
value:
- "john@email.com"
- name: strategy
value: SINGLE
e.g.
/tasks.html does not show anything either when searching for tasks for user "john@email.com"
can you inspect the state via management ui? https://github.com/automatiko-io/automatiko-approval-task?tab=readme-ov-file#management-view-for-admins-only maybe there will be something interesting there why the tasks are not visible.
I am running automatiko-approval-task standalone. How can I access this management view?
it should be available at this path /management/processes/ui
and just a double check by standalone you mean within Kubernetes cluster or outside of it?
Yes, automatiko-approval-task is running on a kubernetes cluster with most recent tekton-operator. What I meant was that there are is nothing else from the automatiko project installed.
Management UI looks like this:
I exported some json files from the UI as well. 387bcbd8-0c80-333e-a010-34dc90dafb5a (1).json 387bcbd8-0c80-333e-a010-34dc90dafb5a.json
Maybe this helps.
thanks for that, I think what is going on - it is actually caused by the base image I suggested in the other issue. It uses java 21 and there is one issue with mvel library that must be upgraded.
Using java 17 should make it work. Could you please rebuild the image with arm64v8/eclipse-temurin:17-ubi9-minimal
as base image instead?
Thanks, I will rebuild and deploy on Monday.
just updated all required libraries and built new version that can be pulled from ghcr.io/automatiko-io/automatiko-approval-task:0.11.0-arm64
you can give it a try instead of building yourself.
Hi. I just changed the image to the one you provided. Still the same issue: "Task you are looking for was not found". Anything else I can help with?
can you provide the logs from the pod?
Sure thing: automatiko-approval-task-89f6546ff-tkhbw.pod.log
can you create new instance of the pipeline. I don't see any issues in the logs as it was before and the last line shows the previous was deleted because it timed out.
I deleted all approval-task resources and referencing pipeline and than created everything anew to be sure. Then I triggered a pipelinerun and attached you'll find the logfile of the new pod.
automatiko-approval-task-89f6546ff-jm5qw.pod.log
I cannot see anything obviously failing. Please note that that neither calling approvalUrl nor tasks.html produce any log entries. Don't know if it's supposed to be like this.
can you do the same as you did here https://github.com/automatiko-io/automatiko-approval-task/issues/18#issuecomment-2182593456
this all looks as expected, data is properly assigned, do you add user info to the url of the task? - john@email.com
is the user who has access to the task to be completed.
here is an url that should give you direct access to the task - it is the one that is sent over email to individuals assigned http://localhost:8080/management/tasks/link/c2luZ2xlfGI0MmMwYTI3LWQxMDEtMzliYy05NWVlLWI5MzFlMGU4Yzg3MDo1MGI4ODg3Ny1iMjQ1LTRmOWQtYTBhYy05NGUwNWYxMjYyNzZ8MWQ1MWUyOGMtOTZiZC00MWFiLWFmZGYtOGI2ZDQ1ODY1ZDhhfGpvaG5AZW1haWwuY29t
I did add the user on friday but forgot today. Sorry for that...
Worked now as expected
good to hear that!
Thanks for all your help. I really would like to get this working. Its the last missing piece to get rid of AWS Codepipelines.
no problem at all. Good luck then, happy to see it is useful :)
Hello,
I successfully deployed automatiko-approval-task to the NS "tekton-cd" on my k3s-based arm64 cluster. I created a pipeline which successfully creates customruns and approvaltask. The issue is that I am not able to actually approve the task allowing the pipeline to continue. If I try accessing the link presented inside the task "approvalUrl:/management/tasks/link/c2luZ2xlfGYyMjhiNjRjLTU0NjktM2NlOC1iYzJmLWNiOGUxMDgxZTc0Zjo4OTZkMzBmZC1kYjViLTRkNzktOWIwZi05ODMxZThlN2Q0YjV8MzFiNzU1ZDAtZjFkNi00N2VkLWJhOGEtZDZiYmMzMGRlMWFifA=="
I just get
logs show some errors which might be related:
Basically I'm running https://github.com/automatiko-io/automatiko-approval-task/blob/main/k8s/v1beta1/kubernetes-basic.yml adjusted for the namespace "tekton-cd" instead of "default".
The pipeline definition itself is configured like this:
Any insights would be appreciated .