CI/CD: a branch without a review namespace now shows orange, not red
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-2 天
- 新手友好度
- 78/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, kubernetes
- 领域
- devops, documentation
调研方向
从 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_namespacefailed 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_namespacefirst.- 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
kubectlerror (an unreachable cluster, a bad context), is still red.
- When the namespace is missing (the API returns NotFound or Forbidden), it exits 3, and the job's
- 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.shfunction table: addskip_review_without_namespaceandreview_namespace_state, and note thatensure_namespaceis 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
components-web-app/docs 的其他 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 72/100
components-web-app/docs#119 ·
-
难度 5/5 一周以上 新手友好度 35/100
components-web-app/docs#1 · 2 条评论 ·
查看 components-web-app/docs 的全部 Issue
相似的 Issue
-
good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 92/100
elnachto/laya-triage#2 ·
-
automation models
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
coverage-gap good-first-pattern help wanted
难度 2/5 1-3 小时 新手友好度 82/100
GoogleCloudPlatform/k8s-aibom#113 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
canonical/charmcraft#2903 · 1 条评论 ·
维护者通常 3 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复