apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: infra-gitops namespace: infra-gitops spec: interval: 30m timeout: 15m retryInterval: 1m sourceRef: kind: GitRepository name: flux path: ./flux/infrastructure/infra-gitops prune: true wait: true dependsOn: - name: infra-data-post-2 - name: infra-monitor --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: infra-gitops-post namespace: infra-gitops spec: # 默认暂停:post 层依赖 Gitea 启动后才能获取的 OIDC / Runner Token 凭据。 # 凭据就绪并写入 flux-env Secret 后,使用 `flux resume kustomization infra-gitops-post -n infra-gitops` 放行。 suspend: true interval: 30m timeout: 15m retryInterval: 1m sourceRef: kind: GitRepository name: flux path: ./flux/infrastructure/infra-gitops/post prune: true wait: true dependsOn: - name: infra-gitops - name: infra-net postBuild: substituteFrom: - kind: Secret name: flux-env