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

CoderWorkspacePoolMember checkCreate: trust only Coder's own 404 on the name lookup (before PR 12)

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go, kubernetes
领域
backend

调研方向

从 internal/controller/coderworkspacepoolmember_controller.go 中的 checkCreate 开始,其中 kwp- 名称查找会调用 isCoderNotFound。将它与 CoderTemplateTest 控制器中使用 isCoderResourceNotFound 的 #352 修复进行比较。为 HTML 404 和 Route not found. 404 添加控制器测试,并检查这两种情况下都不会发送创建请求。

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

描述

Summary

checkCreate in internal/controller/coderworkspacepoolmember_controller.go looks up the kwp- workspace name before the create with the plain isCoderNotFound. A 404 that Coder did not send (a proxy page, Route not found.) counts as a free name, and the member sends the create. #352 fixed the same lookup in the live CoderTemplateTest controller.

The pool member controller is dormant. Fix this before PR 12 of #153 registers it: use isCoderResourceNotFound and add tests for an HTML 404 and Route not found..

Refs #153


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: medium

主要语言
Go
星标
5
派生
3
平均合并
3 小时
30 天内合并 PR
192

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

coder/coder-k8s 的其他 Issue

查看 coder/coder-k8s 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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