Resource annotation options for global resource customizations #3343
Labels
component:core
Syncing, diffing, cluster state cache
enhancement
New feature or request
type:usability
Enhancement of an existing feature
Summary
I would like to set resource annotations like
for resource groups on a global level like the "ignoreDifferences" option in argocd-cm.
Additionally a compare-option like "IgnoreMissing" for the resource itself would be nice to have.
Motivation
Using Appscode Stash for Backups/Restores of k8s volumes and workloads, I have prepared several apiVersion: stash.appscode.com/v1beta1 kind: RestoreSession manifests for each application.
Applying those "fire and forget" RestoreSession CRD manifests is usually not needed/wanted, hence a global "hook-type: Skip", so you can still start a restore with a selective sync, and sync the whole app without worrying to start a restore and potentially lose the data since the last backup.
Defining those "on a need basis" manifests in the ArgoCD App renders the whole app out-of-sync, which is not the desired behaviour. Using "IgnoreDifference=/" still renders the app as "out-of-sync", when the resource is not applied to the cluster. For this use-case rendering only the missing resource out-of-sync is the desired behaviour, so applied restore sessions can be tracked.
Proposal
How do you think this should be implemented?
The text was updated successfully, but these errors were encountered: