Repository navigation
docs(etcd-per-cluster): match the implementation - #141
Open
Timofei Larkin (lllamnyp) wants to merge 1 commit into
Open
Timofei Larkin (lllamnyp) wants to merge 1 commit into
Timofei Larkin (lllamnyp) wants to merge 1 commit into
Conversation
cozystack/cozystack#4817 implemented phases 1 and 2 and had to depart from this proposal where the proposal's facts were wrong: _namespace.etcd is never empty, so it cannot tell a new cluster from an existing one; a dashed DataStore name collides across nested tenants; retargeting an allow label cannot narrow what the tenant's policies already admit; and Kamaji's finalizer cannot complete against an etcd that is down. Left as written, the accepted design and the code would disagree from the start. The proposal now describes what shipped, folds the live-switch findings into the migration runbook, records the remaining work as phases 3 and 4 and open questions, and drops the Status and Date fields the proposal template no longer carries. The three reversals of the proposal's own design get decision records, since the code explains the mechanism but not the option that lost. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reconciles the per-cluster etcd proposal (#25) with what cozystack/cozystack#4817 shipped. That PR implemented phases 1 and 2 and departed from the proposal in several places; this brings the design back in line with the code, as Aleksei Sviridkin (@lexfrei)'s review asks. It targets
proposal/etcd-per-cluster, so it can be folded into #25.What changed
Each point of lexfrei's review, and where it now lands:
_namespace.etcdcan't tell an existing cluster from a new one. Design §4 decides from the liveKamajiControlPlane'sspec.dataStoreName, as #4817 does. Context and the first problem story now say that every tenant resolves_namespace.etcdto at leasttenant-root, and that a new cluster pointed at aDataStore/tenant-rootthat may not exist. Decision record 0001.<namespace>-<release>collides. Design §3 names theDataStore<namespace>.<release>, capped at 63 characters with a hash.Kubernetesbackup strategy (cozystack#4931) covers a cluster's own etcd, and its dump Job carries the label the policy admits.CiliumNetworkPolicywithingressDenythat #4817 ships. Decision record 0002._namespace.etcdgates went in Phase 2 (Design §4, Rollout), so Phase 4 no longer depends on them.kamaji-freezecleanup, and the rolling kubelet restart with the missing Talos access. The operatortalosconfigis an open question.<cluster>-client); the names table includes the client Service and the CA Secret;cozystack.kubernetes-applicationdepends oncozystack.etcd-operator(§7); the revision note, the review-round references and the stale migration slot are gone.Other changes that follow from #4817:
etcd.replicasis bounded by the schema to 1..3 and2is refused at render, rather than a schema enum, and the StorageClass is fixed at creation with a refused 3 → 1 drop on local storage (§2).StatusandDatefields go, per the current proposal template. ADecisionssection and three records underdecisions/are added.talosconfig, and alert rules for a cluster's own etcd. The opt-in migration moves from Phase 2 to Phase 3, since #4817 shipped without it.Not changed here
Author(s)field.KamajiControlPlaneis missing at render time. They are recorded as consequences in records 0001 and 0003, not as resolved.Before review
DCO
git commit --signoff).