Modified path to correspond those declared in oclib peer_cache

This commit is contained in:
pb 2025-03-03 11:40:53 +01:00
parent ba3afc69be
commit 693571ddd7

View File

@ -120,7 +120,7 @@ func (c *AdmiraltyController) GetOneTarget() {
// @Param execution path string true "execution id of the workflow"
// @Param kubeconfigInfo body controllers.KubeInfo true "url and serviceAccount to use with the source formatted as json object"
// @Success 200
// @router /source/:dc_id/:execution [post]
// @router /source/:id [post]
func (c *AdmiraltyController) CreateSource() {
var data KubeInfo
json.Unmarshal(c.Ctx.Input.CopyBody(10000000),&data)
@ -178,7 +178,7 @@ func (c *AdmiraltyController) CreateSource() {
// @Param dc_id path string true "which dc to contact"
// @Param execution path string true "execution id of the workflow"
// @Success 201
// @router /target/:dc_id/:execution [post]
// @router /target/:id [post]
func (c *AdmiraltyController) CreateAdmiraltyTarget(){
var data map[string]interface{}
dc_id := c.Ctx.Input.Param(":dc_id")
@ -230,7 +230,7 @@ func (c *AdmiraltyController) CreateAdmiraltyTarget(){
// @Param dc_id path string true "which dc to contact"
// @Param execution path string true "execution id of the workflow"
// @Success 200
// @router /secret/:dc_id/:execution [get]
// @router /secret/:id [get]
func(c *AdmiraltyController) GetKubeSecret() {
var data map[string]interface{}
dc_id := c.Ctx.Input.Param(":dc_id")
@ -280,7 +280,7 @@ func(c *AdmiraltyController) GetKubeSecret() {
// @Param execution path string true "execution id of the workflow"
// @Param kubeconfig body controllers.Kubeconfig true "Kubeconfig to use when creating secret"
// @Success 200
// @router /secret/:dc_id/:execution [post]
// @router /secret/:id [post]
func (c *AdmiraltyController) CreateKubeSecret() {
var kubeconfig RemoteKubeconfig
var respData map[string]interface{}
@ -331,7 +331,7 @@ func (c *AdmiraltyController) CreateKubeSecret() {
// @Param execution path string true "execution id of the workflow"
// @Success 200
// @Success 203
// @router /node/:dc_id/:execution [get]
// @router /node/:id [get]
func (c *AdmiraltyController) GetNodeReady(){
var secret v1.Secret
dc_id := c.Ctx.Input.Param(":dc_id")
@ -427,7 +427,7 @@ func (c *AdmiraltyController) GetNodeReady(){
// @Param dc_id path string true "which dc to contact"
// @Param execution path string true "execution id of the workflow"
// @Success 200
// @router /kubeconfig/:dc_id/:execution [get]
// @router /kubeconfig/:id [get]
func (c *AdmiraltyController) GetAdmiraltyKubeconfig() {
dc_id := c.Ctx.Input.Param(":dc_id")
execution := c.Ctx.Input.Param(":execution")