Expose CRD projection as a public package
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 25
- Fork
- 35
- Merge trung bình
- 3 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kcp-dev/api-syncagent
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kcp-dev/api-syncagent#161 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: engaging a workspace can fail while a sync controller is stopping, and the workspace is dropped for all controllersCó thể đã có người làm @Wompipomp đã nhận 5 ngày trước. Đang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
kcp-dev/api-syncagent#214 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support namespace caches for authorized local SecretsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
kcp-dev/api-syncagent#195 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
kcp-dev/api-syncagent#188 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
kcp-dev/api-syncagent#186 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kcp-dev/api-syncagent
Issue tương tự
-
ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jordansmall/spindrift#7895 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation priority: medium skill: intermediate status: ready for dev
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
hyperledger-labs/fabric-smart-client#2830 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày