Merge pull request #94891 from iotty/fix.typo

[pkg/api/podsecuritypolicy]: fixup typo
This commit is contained in:
Kubernetes Prow Robot
2020-09-23 11:19:05 -07:00
committed by GitHub

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