GitOps & ArgoCD (50 Qs)•Part 1: GitOps Fundamentals & Core Principles (Junior / Entry-Level)
What are `prune` and `selfHeal` in ArgoCD sync policies?
junior LevelgitopsGitOps Fundamentals
In Simple Words:
prune: true: When an engineer deletes a Kubernetes YAML file from the Git repository, ArgoCD will actively delete the corresponding live resource from the Kubernetes cluster. (Ifprune: false, the deleted file remains running in the cluster as an orphaned object).selfHeal: true: If an operator manually runskubectl edit deploymentor deletes a service directly in the cluster, ArgoCD detects the discrepancy within seconds and automatically re-applies the Git manifest, overwriting the rogue manual change.