在 prune 开启后重新纳管测试对象 #17

Merged
panxiao81 merged 1 commits from test/flux-prune-canary-readopt into main 2026-09-09 20:18:33 +00:00
Owner

原因

前一 revision 同时开启 prune 并删除测试 ConfigMap。Flux 更新了 inventory,但没有回收按旧设置管理的 live 对象;ConfigMap 因而仍然存在且已不在 inventory。

修正步骤

  • http-echo 保持已经生效的 prune: true
  • 将 live flux-prune-canary ConfigMap 重新加入 Git
  • 等待 Flux 再次把它写入 inventory
  • 下一 PR 只删除 ConfigMap,不再改变 prune
  • root 始终保持 prune: false

验证

  • live ConfigMap 当前仍存在
  • Flux dry-run 重新包含且只包含一个该 ConfigMap
  • canary/root prune 分别保持 true/false
  • yamllint 与 git diff --check 通过

该问题没有业务影响,过程已按 changelog 规范记录为 incident。

## 原因 前一 revision 同时开启 prune 并删除测试 ConfigMap。Flux 更新了 inventory,但没有回收按旧设置管理的 live 对象;ConfigMap 因而仍然存在且已不在 inventory。 ## 修正步骤 - `http-echo` 保持已经生效的 `prune: true` - 将 live `flux-prune-canary` ConfigMap 重新加入 Git - 等待 Flux 再次把它写入 inventory - 下一 PR 只删除 ConfigMap,不再改变 prune - root 始终保持 `prune: false` ## 验证 - live ConfigMap 当前仍存在 - Flux dry-run 重新包含且只包含一个该 ConfigMap - canary/root prune 分别保持 true/false - yamllint 与 `git diff --check` 通过 该问题没有业务影响,过程已按 changelog 规范记录为 incident。
panxiao81 added 1 commit 2026-09-09 20:13:54 +00:00
test(gitops): 在 prune 开启后重新纳管测试对象
lint / terraform (push) Successful in 30s
lint / yaml (pull_request) Successful in 8s
lint / ansible (pull_request) Successful in 2m55s
lint / terraform (pull_request) Successful in 30s
lint / yaml (push) Successful in 8s
lint / ansible (push) Successful in 1m59s
304e18d219
panxiao81 merged commit f1bcb9017a into main 2026-09-09 20:18:33 +00:00
panxiao81 deleted branch test/flux-prune-canary-readopt 2026-09-09 20:18:33 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panxiao81/homelab-infra#17