Pure decision logic for Kubernetes operator reconcile loop, computing actions and conditions.
// Source: https://github.com/micro/go-micro | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package kubernetes import ( "fmt" "reflect" ) // Reconcile is the pure decision core an operator's reconcile loop runs: given // a desired resource and the currently observed cluster state, it computes the // one action needed to converge (create / update / nothing) plus the status // conditions to publish. It does not talk to a cluster — no controller-runtime, // no client-go — so the whole convergence decision is unit-testable. An adapter // binary supplies Observed from the live cluster and applies the returned // Action; that adapter is the only piece that needs the Kubernetes clie ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key