mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +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:
parent
83b7f919aa
commit
c74209f6c5
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ func (c *client) RawAbsPath(path string) ([]byte, error) {
|
||||||
if c.restClient == nil {
|
if c.restClient == nil {
|
||||||
return nil, errors.New("rest client not supported")
|
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
|
// PatchResource patches the resource
|
||||||
|
|
Loading…
Add table
Reference in a new issue