mcp: optional resource URL template for UI links

Đang mở
#7 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api

Hướng nghiên cứu

Start by locating the server's command-line flag handling, list and get response construction, and chart value configuration. Trace how resource metadata distinguishes namespaced from cluster-scoped resources. Done means the optional template adds URLs to both response types when configured and leaves responses unchanged when unset.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Motivation

Platforms built on kcp usually have a UI. Agents should be able to hand the user a link to the resource they are talking about, but the URL scheme is platform knowledge the generic server cannot have.

Proposal

An optional flag:

--resource-url-template=https://ui.example.com/w/{workspace}/r/{group}/{version}/{resource}/{namespace}/{name}

When set, list and get responses include a url field per item, rendered from the template. Unset means no change to responses. The server stays platform-agnostic, each deployment injects its own scheme through chart values.

Notes

Template variables should cover workspace (name and cluster ID), group, version, resource, namespace and name. Cluster-scoped resources render without the namespace segment.

Ngôn ngữ chính
Go
Star
1
Fork
2
Merge trung bình
8 giờ 16 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kcp-dev/contrib-virtual-workspaces

Tất cả issue của kcp-dev/contrib-virtual-workspaces

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.