解决 ArgoCD 报错 Failed to sync resource: prune propagation policy
分析 ArgoCD 清理废弃资源时触发级联删除阻断报 prune propagation policy 根因,提供 foreground/background 策略调优步骤。
问题现象
ArgoCD 同步时报错:
Failed to sync resource: prune propagation policy error:
admission webhook denied the request
触发根因
在同步选项中配置了特殊的剪裁级联删除策略(Prune Propagation Policy),与集群中准入控制校验冲突。
解决步骤与操作命令
步骤一:将剪裁传播策略调整为 Background
在 Application 同步选项中指定标准策略:
spec:
syncPolicy:
syncOptions:
- PrunePropagationPolicy=background
同步顺畅通过。


