feat(infra): update infra-gitops.yaml to set suspend to true for post layer

这个提交包含在:
rohow
2026-04-22 19:06:27 +08:00
未验证
父节点 abe8eb4355
当前提交 e5a040581a
修改 3 个文件,包含 6 行新增15 行删除
+2 -5
查看文件
@@ -48,13 +48,12 @@ Kustomization 间通过 `dependsOn` + `wait: true` 串行等待,避免顺序
## 部署后手工步骤(infra-gitops-post
`infra-gitops-post` 通过父级 Kustomization 的 `spec.suspend: ${INFRA_GITOPS_POST_SUSPEND:=true}`
默认暂停,因为它依赖两类只能在 Gitea 启动后获取的凭据:
`infra-gitops-post` 在 base 层硬编码 `spec.suspend: true` 默认暂停,因为它依赖两类只能在 Gitea 启动后获取的凭据:
1. **Flux Operator Web 的 OIDC 客户端**
2. **Gitea Actions Runner Token**
`flux-env` Secret 中设置 `INFRA_GITOPS_POST_SUSPEND=true|false`,从而决定 post 层是否自动放行。
凭据就绪、`flux-env` Secret 重新注入后,使用 `flux resume kustomization infra-gitops-post -n infra-gitops` 手工放行。
步骤:
@@ -71,8 +70,6 @@ Kustomization 间通过 `dependsOn` + `wait: true` 串行等待,避免顺序
FLUX_WEB_OIDC_CLIENT_ID=<step 2 client id>
FLUX_WEB_OIDC_CLIENT_SECRET=<step 2 client secret>
GITEA_ACTIONS_TOKEN=<step 3 token>
INFRA_GITOPS_POST_SUSPEND=false
```
5. 重新注入 `flux-env` Secret 并协调: