mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-29 18:27:58 +08:00
init container default open privileged mode
This commit is contained in:
parent
728f58e319
commit
6a806a6466
@ -127,6 +127,10 @@ func conversionServicePlugin(as *typesv1.AppService, dbmanager db.Manager) ([]v1
|
||||
meshPluginID = pluginR.PluginID
|
||||
}
|
||||
if pluginModel == model.InitPlugin {
|
||||
if strings.ToLower(os.Getenv("DISABLE_INIT_CONTAINER_ENABLE_SECURITY")) != "true" {
|
||||
//init container default open security
|
||||
pc.SecurityContext = &corev1.SecurityContext{Privileged: util.Bool(true)}
|
||||
}
|
||||
initContainers = append(initContainers, pc)
|
||||
} else {
|
||||
containers = append(containers, pc)
|
||||
|
Loading…
Reference in New Issue
Block a user