mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
[pkg/api/podsecuritypolicy]: fixup typo
Signed-off-by: Zhou Peng <p@ctriple.cn>
This commit is contained in:
parent
8d30a5f136
commit
9a960fb1f4
@ -23,7 +23,7 @@ import (
|
||||
)
|
||||
|
||||
// DropDisabledFields removes disabled fields from the pod security policy spec.
|
||||
// This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a od security policy spec.
|
||||
// This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a pod security policy spec.
|
||||
func DropDisabledFields(pspSpec, oldPSPSpec *policy.PodSecurityPolicySpec) {
|
||||
if !utilfeature.DefaultFeatureGate.Enabled(features.ProcMountType) && !allowedProcMountTypesInUse(oldPSPSpec) {
|
||||
pspSpec.AllowedProcMountTypes = nil
|
||||
|
Loading…
Reference in New Issue
Block a user