Expose CRD projection as a public package
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read internal/projection and its callers, especially pubres-toolkit, to see how ProjectCRD is imported and what package paths need updating. Move the package to a public location such as pkg/projection, then run the relevant package and repository tests; done means external modules can import it without adding SDK dependencies or changing its projection behavior.
由索引模型根据 Issue 内容生成。
描述
Feature Description
We generate client tooling (a Terraform provider, later SDKs) from the APIs our services publish through the Sync Agent. To match what users see in kcp, we need the same projection the agent applies: version selection, storage version, renames of versions, group, kind, plural, scope.
This runs offline in CI, from the CRD and PublishedResource files, with no cluster. ProjectCRD does exactly that, but it lives in internal/projection, so it can't be imported from another module. pubres-toolkit uses it, but needs a cluster to read the CRD. Right now we keep a copy of the logic, which has to be kept in sync by hand.
Proposed Solution
Move internal/projection to a public package, for example pkg/projection. It stays in the main module, so there are no new dependencies. Moving it into sdk/ would add k8s.io/apiextensions-apiserver to the SDK, which is probably not wanted.
Alternative Solutions
An offline mode for pubres-toolkit crd that reads the CRD from a file instead of the cluster.
Related: #128.
Want to contribute?
- I would like to work on this issue.
Additional Context
No response
- 主要语言
- Go
- 星标
- 25
- 派生
- 35
- 平均合并
- 3 天 19 小时
- 30 天内合并 PR
- 18
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kcp-dev/api-syncagent 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
kcp-dev/api-syncagent#161 · 1 条评论 ·
维护者通常 1 天内回复
-
bug: engaging a workspace can fail while a sync controller is stopping, and the workspace is dropped for all controllers可能已有人在做 @Wompipomp 于 5 天前认领。 未关闭
难度 4/5 1-2 天 新手友好度 35/100
kcp-dev/api-syncagent#214 · 1 条评论 ·
维护者通常 1 天内回复
-
Support namespace caches for authorized local Secrets可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 35/100
kcp-dev/api-syncagent#195 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
kcp-dev/api-syncagent#188 · 1 条评论 ·
维护者通常 1 天内回复
-
kind/feature
难度 4/5 3-5 天 新手友好度 48/100
kcp-dev/api-syncagent#186 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 kcp-dev/api-syncagent 的全部 Issue
相似的 Issue
-
ready-for-agent
难度 2/5 1-3 小时 新手友好度 76/100
jordansmall/spindrift#7895 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
documentation priority: medium skill: intermediate status: ready for dev
难度 2/5 1-3 小时 新手友好度 83/100
hyperledger-labs/fabric-smart-client#2830 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复