Remove runtime in validate

Validate is useless as dockershim is removed

Signed-off-by: yanghesong <hesong.yang@foxmail.com>
This commit is contained in:
yanghesong
2022-01-09 09:11:49 +08:00
parent d2c9456963
commit 6905fef761
3 changed files with 6 additions and 13 deletions

View File

@@ -831,7 +831,7 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
if sysruntime.GOOS == "linux" {
// AppArmor is a Linux kernel security module and it does not support other operating systems.
klet.appArmorValidator = apparmor.NewValidator(containerRuntime)
klet.appArmorValidator = apparmor.NewValidator()
klet.softAdmitHandlers.AddPodAdmitHandler(lifecycle.NewAppArmorAdmitHandler(klet.appArmorValidator))
}
klet.softAdmitHandlers.AddPodAdmitHandler(lifecycle.NewNoNewPrivsAdmitHandler(klet.containerRuntime))