ext/cluster dry-run wrapper: RawAbsPath 允许写入操作到达真实的集群
作者: RudraDudhat2509创建于 2026年9月30日更新于 2026年9月30日
**ext/cluster.Client.RawAbsPath 使每个写操作都能到达真实的集群,从而打败了干运模块。`
ext/cluster.Client 文档中指出:"覆盖写操作到干运 — 阻止执行实际操作。" 它上的每个基于资源的写方法( PatchResource, DeleteResource, CreateResource, UpdateResource, UpdateStatusResource, ApplyResource, ApplyStatusResource)都无条件地转到 c.fake, 从不触及 c.inner (真实的客户端)。RawAbsPath 并不遵循这种模式:
内容来源: kyverno/kyverno