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
This commit is contained in:
@@ -3,8 +3,8 @@ kind: Application
|
|||||||
metadata:
|
metadata:
|
||||||
name: tekton-ci-cd
|
name: tekton-ci-cd
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
finalizers:
|
||||||
argocd.argoproj.io/compare-options: IgnoreExtraneous
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
@@ -16,13 +16,17 @@ spec:
|
|||||||
namespace: tekton-pipelines
|
namespace: tekton-pipelines
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: false
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
|
allowEmpty: false
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
- PrunePropagationPolicy=foreground
|
||||||
|
- PruneLast=true
|
||||||
retry:
|
retry:
|
||||||
limit: 5
|
limit: 5
|
||||||
backoff:
|
backoff:
|
||||||
duration: 5s
|
duration: 5s
|
||||||
factor: 2
|
factor: 2
|
||||||
maxDuration: 3m
|
maxDuration: 3m
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user