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:
parent
1401bcf2fb
commit
b6209da108
3 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue