From 4ac6b297e55e8c672abc60a69cb584af1ee303c9 Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Sun, 11 Jan 2026 00:29:10 +0900 Subject: [PATCH] CHORE(tekton): enable auto-prune for tekton-ci-cd - Enable prune: true to auto-delete orphaned resources - Add finalizers for proper resource cleanup - Add PrunePropagationPolicy and PruneLast sync options - Set revisionHistoryLimit to 10 --- tekton/ci-cd/argocd.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tekton/ci-cd/argocd.yaml b/tekton/ci-cd/argocd.yaml index 43ed53d..b309512 100644 --- a/tekton/ci-cd/argocd.yaml +++ b/tekton/ci-cd/argocd.yaml @@ -3,8 +3,8 @@ kind: Application metadata: name: tekton-ci-cd namespace: argocd - annotations: - argocd.argoproj.io/compare-options: IgnoreExtraneous + finalizers: + - resources-finalizer.argocd.argoproj.io spec: project: default source: @@ -16,13 +16,17 @@ spec: namespace: tekton-pipelines syncPolicy: automated: - prune: false + prune: true selfHeal: true + allowEmpty: false syncOptions: - - CreateNamespace=true + - CreateNamespace=true + - PrunePropagationPolicy=foreground + - PruneLast=true retry: limit: 5 backoff: duration: 5s factor: 2 maxDuration: 3m + revisionHistoryLimit: 10