diff --git a/k8s/stage/osh-client-tekton/tekton-cleanup-cronjob.yaml b/k8s/stage/osh-client-tekton/tekton-cleanup-cronjob.yaml index 0b1833a..88f1c8a 100644 --- a/k8s/stage/osh-client-tekton/tekton-cleanup-cronjob.yaml +++ b/k8s/stage/osh-client-tekton/tekton-cleanup-cronjob.yaml @@ -10,6 +10,7 @@ spec: spec: template: spec: + serviceAccountName: osh containers: - name: tekton-cleanup image: quay.io/openshift-pipeline/openshift-pipelines-cli-tkn:1.11 @@ -17,5 +18,5 @@ spec: command: - /bin/sh - -c - - tkn pipelinerun delete --keep 10 && tkn taskrun delete --keep 20 - restartPolicy: OnFailure + - tkn pipelinerun delete --keep 10 -f && tkn taskrun delete --keep 20 -f + restartPolicy: Never