mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
744 fixing broken tests
This commit is contained in:
parent
2bd484d5b8
commit
ee9b478f42
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ func (ctx *Context) Query(query string) (interface{}, error) {
|
|||
}
|
||||
|
||||
func (ctx *Context) isWhiteListed(variable string) bool {
|
||||
if len(ctx.whiteListVars) == 0 {
|
||||
return true
|
||||
}
|
||||
for _, wVar := range ctx.whiteListVars {
|
||||
if strings.HasPrefix(variable, wVar) {
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue