1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: use RawClient in context loader (#7499)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-06-12 18:03:17 +02:00 committed by GitHub
parent 1401bcf2fb
commit b6209da108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@ type mockContextLoader struct {
func (l *mockContextLoader) Load(
ctx context.Context,
jp jmespath.Interface,
client engineapi.Client,
client engineapi.RawClient,
_ registryclient.Client,
contextEntries []kyvernov1.ContextEntry,
jsonContext enginecontext.Interface,

View file

@ -20,7 +20,7 @@ type ContextLoader interface {
Load(
ctx context.Context,
jp jmespath.Interface,
client Client,
client RawClient,
rclient registryclient.Client,
contextEntries []kyvernov1.ContextEntry,
jsonContext enginecontext.Interface,
@ -46,7 +46,7 @@ type contextLoader struct {
func (l *contextLoader) Load(
ctx context.Context,
jp jmespath.Interface,
client Client,
client RawClient,
rclient registryclient.Client,
contextEntries []kyvernov1.ContextEntry,
jsonContext enginecontext.Interface,
@ -65,7 +65,7 @@ func (l *contextLoader) Load(
func (l *contextLoader) newDeferredLoader(
ctx context.Context,
jp jmespath.Interface,
client Client,
client RawClient,
rclient registryclient.Client,
entry kyvernov1.ContextEntry,
jsonContext enginecontext.Interface,

View file

@ -45,7 +45,7 @@ type mockContextLoader struct {
func (l *mockContextLoader) Load(
ctx context.Context,
jp jmespath.Interface,
client engineapi.Client,
client engineapi.RawClient,
rclient registryclient.Client,
contextEntries []kyvernov1.ContextEntry,
jsonContext enginecontext.Interface,