feat(template/gitops): support to add/update k8s custom template with git repository method

This commit is contained in:
oscarzhou
2022-10-18 15:28:32 +13:00
parent 64cd8d0bc1
commit aedae9b4ca
10 changed files with 219 additions and 43 deletions
@@ -36,6 +36,8 @@ func NewHandler(bouncer *security.RequestBouncer) *Handler {
bouncer.AuthenticatedAccess(httperror.LoggerHandler(h.customTemplateUpdate))).Methods(http.MethodPut)
h.Handle("/custom_templates/{id}",
bouncer.AuthenticatedAccess(httperror.LoggerHandler(h.customTemplateDelete))).Methods(http.MethodDelete)
h.Handle("/custom_templates/{id}/git_fetch",
bouncer.AuthenticatedAccess(httperror.LoggerHandler(h.customTemplateGitFetch))).Methods(http.MethodPut)
return h
}