Skip to content

Commit

Permalink
Rename variable to kyvernoapicallvariable
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelMue committed Mar 23, 2021
1 parent 4f96232 commit 04517e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/policy/validate.go
Expand Up @@ -683,7 +683,7 @@ func validateAPICall(entry kyverno.ContextEntry) error {
}

// Replace all variables to prevent validation failing on variable keys.
urlPath := variables.ReplaceAllVars(entry.APICall.URLPath, func(s string) string { return "variable" })
urlPath := variables.ReplaceAllVars(entry.APICall.URLPath, func(s string) string { return "kyvernoapicallvariable" })

if _, err := engine.NewAPIPath(urlPath); err != nil {
return err
Expand Down

0 comments on commit 04517e7

Please sign in to comment.