1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00

fix: replace AbsPath with RequestURI to support query params (#4849)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-10-08 15:22:51 +02:00 committed by GitHub
parent 83b7f919aa
commit c74209f6c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,7 +145,7 @@ func (c *client) RawAbsPath(path string) ([]byte, error) {
if c.restClient == nil {
return nil, errors.New("rest client not supported")
}
return c.restClient.Get().AbsPath(path).DoRaw(context.TODO())
return c.restClient.Get().RequestURI(path).DoRaw(context.TODO())
}
// PatchResource patches the resource