- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateHostSysctl (0.16 sec)
-
pkg/api/pod/util.go
if oldPodSpec.SecurityContext != nil && len(oldPodSpec.SecurityContext.Sysctls) != 0 { for _, s := range oldPodSpec.SecurityContext.Sysctls { err := apivalidation.ValidateHostSysctl(s.Name, oldPodSpec.SecurityContext, nil) if err != nil { opts.AllowNamespacedSysctlsForHostNetAndHostIPC = true break } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
} if !opts.AllowNamespacedSysctlsForHostNetAndHostIPC { err := ValidateHostSysctl(s.Name, securityContext, fldPath.Index(i).Child("name")) if err != nil { allErrs = append(allErrs, err) } } names[s.Name] = struct{}{} } return allErrs } // ValidateHostSysctl will return error if namespaced sysctls is applied to pod sharing the respective namespaces with the host.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0)