Reputation: 11
I use Istio in my cluster with sidecar injection. When my Tekton pruner finishes a run, the pruner container stops but the Istio sidecar container does not. This prevents the job from finishing and the pod from being terminated. This means that my pruner never runs again.
My pruner config:
pruner:
disabled: false
schedule: "*/30 * * * *"
startingDeadlineSeconds: 100
resources:
- pipelinerun
keep: 1
prune-per-resource: true
My first instinct was to disable Istio sidecar injection for just the pruner, but TektonConfig does not allow much customization to the job. Tekton Config: Pruner
I saw some posts regarding calling the Istio /quitquitquit endpoint to shut it down.. this does work but I cannot add any customization to the pruner.
Looking for advice on how to overcome this. Im surprised Tekton does not even allow adding annotations to the pruner to support customizations like this.
Thanks
Upvotes: 1
Views: 22