Rename DropDisabledAlphaFields to DropDisabledFields

This commit is contained in:
Jordan Liggitt
2018-12-18 17:45:37 -05:00
parent 9f40607ea7
commit 88284f637b
9 changed files with 23 additions and 23 deletions

View File

@@ -22,9 +22,9 @@ import (
"k8s.io/kubernetes/pkg/features"
)
// DropDisabledAlphaFields removes disabled fields from the pod security policy spec.
// 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.
func DropDisabledAlphaFields(pspSpec *policy.PodSecurityPolicySpec) {
func DropDisabledFields(pspSpec *policy.PodSecurityPolicySpec) {
if !utilfeature.DefaultFeatureGate.Enabled(features.ProcMountType) {
pspSpec.AllowedProcMountTypes = nil
}