mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
ProcMount validation and testing
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
This commit is contained in:
@@ -423,3 +423,10 @@ func SetDefaults_HostPathVolumeSource(obj *v1.HostPathVolumeSource) {
|
||||
obj.Type = &typeVol
|
||||
}
|
||||
}
|
||||
|
||||
func SetDefaults_SecurityContext(obj *v1.SecurityContext) {
|
||||
if obj.ProcMount == nil {
|
||||
defProcMount := v1.DefaultProcMount
|
||||
obj.ProcMount = &defProcMount
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user