Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CI/CD: a branch without a review namespace now shows orange, not red

已关闭 适合新手
#94 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-2 天
新手友好度
78/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, kubernetes

调研方向

从 content/6.deployment/3.ci-cd.md 开始,检查 k8s.sh 的函数表,并以 components-web-app 的提交 5b6a953 作为行为参考。更新 Review Apps 和函数文档,并检查 GitHub Actions 页面是否需要警告注释和跳过的步骤。完成标准是准确记录橙色与红色的行为差异、namespace 创建、未改变的 staging/production 行为以及列出的函数。

由索引模型根据 Issue 内容生成。

描述

components-web-app 5b6a953 changes what the review job does on a branch that has no namespace. content/6.deployment/3.ci-cd.md needs updating.

What changed

  • Before: ensure_namespace failed and the pipeline went red on every branch nobody had provisioned a namespace for, which was nearly all of them. A red pipeline said nothing, and a real deploy failure looked the same.
  • Now: the review job runs skip_review_without_namespace first.
    • When the namespace is missing (the API returns NotFound or Forbidden), it exits 3, and the job's allow_failure: exit_codes: [3] shows the pipeline orange ("passed with warnings").
    • A deploy that really fails, and any other kubectl error (an unreachable cluster, a bad context), is still red.
  • Staging, canary and production are unchanged: a missing namespace there still fails hard.
  • GitHub Actions has no orange state. The review job adds a warning annotation and skips its deploy, fixtures and warm steps.

Pages

  • Review Apps section: "Every branch (except main) gets its own Kubernetes namespace" isn't accurate. A branch gets a review environment only once someone creates its namespace, with role bindings. Say what orange means, and how to create a namespace for a branch that needs one.
  • The k8s.sh function table: add skip_review_without_namespace and review_namespace_state, and note that ensure_namespace is still what staging and production use.
  • GitHub Actions page, if there is one: the warning annotation and the skipped steps.
主要语言
Vue
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

components-web-app/docs 的其他 Issue

查看 components-web-app/docs 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。