分阶段接管 Gitea Actions Helm release #20

Merged
panxiao81 merged 1 commits from feat/flux-gitea-actions-adoption-stage into main 2026-09-10 05:18:17 +00:00
Owner

第一阶段:只登记,不执行 Helm action

  • 添加 Gitea HelmRepository
  • 固定 actions chart 0.1.1
  • 从仓库 values.yaml 生成 watch-enabled ConfigMap
  • 添加 suspend: true 的 HelmRelease
  • 添加 prune: false 的 Flux 子 Kustomization
  • 继续复用现有 namespace、ExternalSecret、Secret、PVC 和 release name

安全设计

  • HelmRelease suspend,因此本 PR 合并后不会执行 install/upgrade
  • install/upgrade 使用 RetryOnFailure,不会 rollback 到 Helm stored rootless manifest
  • root Kustomization 仍为 prune: false
  • 接管和 chart 升级分开 review

验证

  • 固定 chart 0.1.1 + Git values 的 helm template 使用 regular docker:29.7.1-dind
  • 对完整 chart render 执行 kubectl diff,输出为空:与 live chart-managed 资源零差异
  • Flux/Kustomize 构建通过
  • HelmRepository、HelmRelease 和子 Kustomization server-side dry-run 通过
  • yamllint 与 git diff --check 通过

合并后只验证 HelmRepository 和 suspended HelmRelease 状态;第二 PR 才解除 suspend。

## 第一阶段:只登记,不执行 Helm action - 添加 Gitea HelmRepository - 固定 actions chart `0.1.1` - 从仓库 `values.yaml` 生成 watch-enabled ConfigMap - 添加 `suspend: true` 的 HelmRelease - 添加 `prune: false` 的 Flux 子 Kustomization - 继续复用现有 namespace、ExternalSecret、Secret、PVC 和 release name ## 安全设计 - HelmRelease suspend,因此本 PR 合并后不会执行 install/upgrade - install/upgrade 使用 `RetryOnFailure`,不会 rollback 到 Helm stored rootless manifest - root Kustomization 仍为 `prune: false` - 接管和 chart 升级分开 review ## 验证 - 固定 chart 0.1.1 + Git values 的 `helm template` 使用 regular `docker:29.7.1-dind` - 对完整 chart render 执行 `kubectl diff`,输出为空:与 live chart-managed 资源零差异 - Flux/Kustomize 构建通过 - HelmRepository、HelmRelease 和子 Kustomization server-side dry-run 通过 - yamllint 与 `git diff --check` 通过 合并后只验证 HelmRepository 和 suspended HelmRelease 状态;第二 PR 才解除 suspend。
panxiao81 added 1 commit 2026-09-10 05:02:12 +00:00
feat(gitops): staged 接管 Gitea Actions Helm release
lint / yaml (push) Successful in 14s
lint / yaml (pull_request) Successful in 17s
lint / terraform (pull_request) Successful in 33s
lint / terraform (push) Successful in 29s
lint / ansible (push) Successful in 6m18s
lint / ansible (pull_request) Successful in 6m13s
745d2cc6c2
panxiao81 merged commit a8de4d257b into main 2026-09-10 05:18:17 +00:00
panxiao81 deleted branch feat/flux-gitea-actions-adoption-stage 2026-09-10 05:18:18 +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#20