Commit 24a1ef0
authored
* fix(#341): pin dev by digest (convergent) + symmetric convergence check
dev pinned the moving :main tag with imagePullPolicy: Always, which is
non-convergent: Always re-resolves :main -> digest independently per pod
at each (re)start, so pods started seconds apart or restarted later
(liveness/eviction/cron) silently drift onto different builds. This is
the exact cross-pod skew dev's >=2 replicas exist to surface, yet it was
invisible: AGENTS.md documented convergence verification for prod only.
- k8s/dev-deployment.yaml: pin main@sha256:<digest>, IfNotPresent (like prod)
- AGENTS.md: dev redeploy is now a promote-by-digest flow; convergence
check is stated once for both dev and prod, with the Terminating-zombie
caveat (never force-delete).
* fix(#341): refresh the dev pin to current :main; document a docker-less digest lookup
The pin in this PR was read 18 days ago. :main has moved five builds since, and
dev has been hand-pinned twice in the meantime to keep up — most recently to
sha256:f9be5dae (git_sha 19b3c70, current main tip), which is what the live
deployment and both serving pods run right now.
Merging the stale sha256:1b0f133f would have made git disagree with the cluster
and silently rolled dev back 18 days on the next `kubectl apply` — the same
class of drift this PR exists to prevent, just slower. Re-read the digest from
the registry and pin what dev actually runs, so the merge is a no-op against the
live deployment.
Also document the registry-v2 fallback for reading a digest. The `imagetools
inspect` line assumes a docker CLI, which a JupyterLab session doesn't have, and
the GHCR packages API needs a read:packages scope our gh logins generally lack —
so the documented step was not executable from the environment the rollout often
gets driven from. The curl form works anywhere, with a note to validate it
against prod's existing pin before trusting it.
1 parent 19b3c70 commit 24a1ef0
2 files changed
Lines changed: 52 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
| |||
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
108 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
109 | 137 | | |
110 | 138 | | |
111 | 139 | | |
112 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
113 | 145 | | |
114 | 146 | | |
115 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
0 commit comments