From 2442c94ec6e2a49ee909937d37cad189dffab5e9 Mon Sep 17 00:00:00 2001 From: huanggze Date: Wed, 12 Jun 2019 14:17:04 +0800 Subject: [PATCH] api: change HTTP method of fluentbit output updating from POST to PUT Signed-off-by: huanggze --- pkg/apis/logging/v1alpha2/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/logging/v1alpha2/register.go b/pkg/apis/logging/v1alpha2/register.go index ca0be6be..705579bf 100644 --- a/pkg/apis/logging/v1alpha2/register.go +++ b/pkg/apis/logging/v1alpha2/register.go @@ -219,7 +219,7 @@ func addWebService(c *restful.Container) error { Consumes(restful.MIME_JSON, restful.MIME_XML). Produces(restful.MIME_JSON) - ws.Route(ws.POST("/fluentbit/outputs/{output}").To(logging.LoggingUpdateFluentbitOutput). + ws.Route(ws.PUT("/fluentbit/outputs/{output}").To(logging.LoggingUpdateFluentbitOutput). Filter(filter.Logging). Doc("Update a Fluent bit output plugin."). Param(ws.PathParameter("output", "ID of the output to update.").DataType("string").Required(true)). -- GitLab