1
0
Fork 0
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:
shravan 2020-05-06 01:08:49 +05:30
parent 2bd484d5b8
commit ee9b478f42

View file

@ -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