check privileged image whitelist in service section

Signed-off-by: divialth <65872926+divialth@users.noreply.github.com>
This commit is contained in:
divialth
2020-07-08 13:54:31 +02:00
parent 19c1dbb938
commit 70b898ea1a

View File

@@ -274,6 +274,10 @@ func (c *Compiler) Compile(ctx context.Context, args runtime.CompilerArgs) runti
if !src.When.Match(match) {
dst.RunPolicy = runtime.RunNever
}
if c.isPrivileged(src) {
dst.Privileged = true
}
}
// create steps