From 5d99edcdb1e16fe152d43175bfbd7773f255b8e5 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Tue, 14 Feb 2017 13:00:16 -0500 Subject: [PATCH] Support PATCH operation in root proxy --- pkg/endpoints/installer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/endpoints/installer.go b/pkg/endpoints/installer.go index be511bf4d..d853873d9 100644 --- a/pkg/endpoints/installer.go +++ b/pkg/endpoints/installer.go @@ -766,6 +766,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag addProxyRoute(ws, "GET", a.prefix, action.Path, proxyHandler, namespaced, kind, resource, subresource, hasSubresource, action.Params, operationSuffix) addProxyRoute(ws, "PUT", a.prefix, action.Path, proxyHandler, namespaced, kind, resource, subresource, hasSubresource, action.Params, operationSuffix) addProxyRoute(ws, "POST", a.prefix, action.Path, proxyHandler, namespaced, kind, resource, subresource, hasSubresource, action.Params, operationSuffix) + addProxyRoute(ws, "PATCH", a.prefix, action.Path, proxyHandler, namespaced, kind, resource, subresource, hasSubresource, action.Params, operationSuffix) addProxyRoute(ws, "DELETE", a.prefix, action.Path, proxyHandler, namespaced, kind, resource, subresource, hasSubresource, action.Params, operationSuffix) addProxyRoute(ws, "HEAD", a.prefix, action.Path, proxyHandler, namespaced, kind, resource, subresource, hasSubresource, action.Params, operationSuffix) addProxyRoute(ws, "OPTIONS", a.prefix, action.Path, proxyHandler, namespaced, kind, resource, subresource, hasSubresource, action.Params, operationSuffix)