mcp: optional resource URL template for UI links

Aperta
#7 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
1
Fork
2
Merge medio
8h 16m
PR unite (30g)
3

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kcp-dev/contrib-virtual-workspaces

Tutte le issue di kcp-dev/contrib-virtual-workspaces

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.