Repository navigation
Commit 79ce69a
committed
fix(vertical-pod-autoscaler): widen renewBefore + document selfSigned checksum, add existingSecret belt-and-suspenders assertion
Address the three non-blocking follow-ups on myasnikovdaniil's approval:
* renewBefore: 360h → 2160h (15d → 90d). With webhook `failurePolicy:
Ignore`, an expired in-memory cert silently drops admission traffic
until a Helm action rolls the ReplicaSet. helm-controller does not
re-render on reconcile ticks after the release converges, only on
install/upgrade/rollback — a 15-day window ties admission-webhook
liveness to release cadence. 90 days survives realistic release
schedules on customer clusters. Rotate-and-restart requirement is
unchanged; the window is widened.
* Document on deployment.yaml why hashing only `tls.crt` is safe:
the Issuer is `selfSigned`, so `ca.crt == tls.crt` and every rotation
re-issues `tls.crt`. If a future refactor ever swaps the Issuer to a
CA-backed one (external CA, ACME, Vault), the checksum MUST be
extended to also cover `ca.crt` — otherwise a CA-only rotation would
leave the self-registered MutatingWebhookConfiguration serving a stale
caBundle until the next leaf rotation.
* Add a belt-and-suspenders helm-unittest assertion pinning that under
`existingSecret` the admission-controller pod-template carries NEITHER
`checksum/tls-secret` (legacy amplifier) NOR `checksum/tls-cert`
(cert-manager runtime lookup). Templates are already structurally
gated; this catches a future refactor that accidentally moves either
checksum outside its `if` gate.
Regenerated patches/cert-manager-admission-tls.diff against upstream
via `make update` flow so the vendored chart edits stay in sync with
the patch file (avoids silent revert on the next update).
Verified: 16/16 helm-unittest cases pass, `helm lint` clean,
`helm template ... certManagerEnabled=true` renders `renewBefore: 2160h`,
and re-applying the regenerated patch onto a fresh upstream pull
produces a byte-identical chart tree.
Signed-off-by: Ivan Okhotnikov <[email protected]>1 parent b407035 commit 79ce69a
4 files changed
Lines changed: 84 additions & 8 deletions
File tree
- packages/system/vertical-pod-autoscaler
- charts/vertical-pod-autoscaler/templates/admission-controller
- patches
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
111 | 128 | | |
112 | 129 | | |
113 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
108 | 120 | | |
109 | 121 | | |
110 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
117 | 134 | | |
118 | 135 | | |
119 | 136 | | |
| |||
127 | 144 | | |
128 | 145 | | |
129 | 146 | | |
130 | | - | |
| 147 | + | |
131 | 148 | | |
132 | 149 | | |
133 | | - | |
| 150 | + | |
134 | 151 | | |
135 | 152 | | |
136 | 153 | | |
| |||
210 | 227 | | |
211 | 228 | | |
212 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
213 | 242 | | |
214 | 243 | | |
215 | 244 | | |
| |||
221 | 250 | | |
222 | 251 | | |
223 | 252 | | |
224 | | - | |
| 253 | + | |
225 | 254 | | |
226 | 255 | | |
227 | 256 | | |
| |||
247 | 276 | | |
248 | 277 | | |
249 | 278 | | |
250 | | - | |
| 279 | + | |
251 | 280 | | |
252 | 281 | | |
253 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
184 | 202 | | |
185 | 203 | | |
186 | 204 | | |
| |||
0 commit comments