This paper introduces a lightweight and auditable method for asynchronous information exchange between distributed entities using Git as the coordination medium. The proposed approach replaces traditional APIs and message brokers with a Git-based communication model built on the principles of Kubernetes Operators and Custom Resources (CRs). Each participating entity, designated as a Publisher or Consumer, interacts through a shared repository that serves as a single source of truth, where the spec field captures the desired state and the status field reflects the observed outcome. This pattern extends GitOps beyond infrastructure management to support cross-domain, inter-organizational, and air-gapped collaboration scenarios. By leveraging Git native features (versioning, commit signing, and access control) the model ensures transparency, traceability, and reproducibility while preserving loose coupling and autonomy between systems. The paper discusses architectural principles, implementation considerations, and comparisons with RESTful and broker-based integrations, highlighting both the advantages and trade-offs of adopting Git as a declarative communication substrate.
翻译:本文提出了一种轻量级且可审计的方法,用于分布式实体之间基于Git作为协调媒介的异步信息交换。所提出的方法以基于Git的通信模型取代了传统的API和消息代理,该模型建立在Kubernetes Operator和自定义资源(CR)的原理之上。每个参与实体(指定为发布者或消费者)通过一个共享仓库进行交互,该仓库作为单一事实来源,其中spec字段捕获期望状态,而status字段反映观察结果。此模式将GitOps从基础设施管理扩展到支持跨领域、跨组织以及物理隔离环境下的协作场景。通过利用Git原生功能(版本控制、提交签名和访问控制),该模型确保了透明度、可追溯性和可复现性,同时保持了系统间的松耦合和自主性。本文讨论了架构原则、实现考虑因素,以及与RESTful和基于代理的集成方式的比较,重点阐述了采用Git作为声明式通信基质的优势与权衡。