From eab456b8985d724c915de5d1271d7da1220f68f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Fri, 13 Sep 2024 14:17:08 -0300 Subject: [PATCH] Add support to a envvar that supports to disable validation (#157) --- pkg/rpaas/client/internal_client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/rpaas/client/internal_client.go b/pkg/rpaas/client/internal_client.go index ca0b5602a..bb10c01b1 100644 --- a/pkg/rpaas/client/internal_client.go +++ b/pkg/rpaas/client/internal_client.go @@ -203,6 +203,11 @@ func (c *client) newRequestWithQueryString(method, pathName string, body io.Read c.baseAuthHeader(request.Header) + rpaasDisableValidation := os.Getenv("RPAAS_DISABLE_VALIDATION") + if rpaasDisableValidation != "" { + request.Header.Set("X-Rpaas-Disable-Validation", rpaasDisableValidation) + } + return request, nil }