Merge pull request #9 from divialth/fix/checkServiceIsPrivileged
check privileged image whitelist in service section
This commit is contained in:
@@ -317,6 +317,10 @@ func (c *Compiler) Compile(ctx context.Context, args runtime.CompilerArgs) runti
|
|||||||
if !src.When.Match(match) {
|
if !src.When.Match(match) {
|
||||||
dst.RunPolicy = runtime.RunNever
|
dst.RunPolicy = runtime.RunNever
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.isPrivileged(src) {
|
||||||
|
dst.Privileged = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// create steps
|
// create steps
|
||||||
|
|||||||
Reference in New Issue
Block a user