Skip to content

Commit

Permalink
feat: add a finalizer to ArgoCD project CR
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed Sep 5, 2023
1 parent a74d63e commit acf67fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/myks/templates/argocd/environment.ytt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ kind: AppProject
metadata:
name: #@ project_name
namespace: #@ a.namespace
#! Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: #@ 'Project for "{}" environment'.format(env_name)
clusterResourceWhitelist:
Expand Down

0 comments on commit acf67fd

Please sign in to comment.