kube CSR: preload UI fields

This commit is contained in:
Mikaël Cluseau
2026-07-20 12:20:47 +02:00
parent 4d1deeb773
commit d2aefba82e
5 changed files with 76 additions and 2 deletions
+5 -1
View File
@@ -42,7 +42,11 @@ func registerWS(rest *restful.Container) {
Param(ws.PathParameter("asset", "the requested asset")).
Doc("Fetch an asset via a download token")).
Route(ws.GET("/download-set").To(wsDownloadSet)).
Route(ws.GET("/download-set/{kind}/{name}/{asset}").To(wsDownloadSetAsset))
Route(ws.GET("/download-set/{kind}/{name}/{asset}").To(wsDownloadSetAsset)).
Route(ws.POST("/parse-kube-csr").To(wsParseKubeCSR).
Reads(KubeCSRParseReq{}).
Writes(KubeCSRParseResp{}).
Doc("Parse a Kubernetes CSR PEM and return the subject fields"))
rest.Add(ws)
}