[pkg/api/podsecuritypolicy]: fixup typo

Signed-off-by: Zhou Peng <p@ctriple.cn>
This commit is contained in:
Zhou Peng 2020-09-18 20:52:52 +08:00
parent 8d30a5f136
commit 9a960fb1f4

View File

@ -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