mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #94891 from iotty/fix.typo
[pkg/api/podsecuritypolicy]: fixup typo
This commit is contained in:
commit
7614e33186
@ -23,7 +23,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// DropDisabledFields 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.
|
// This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a pod security policy spec.
|
||||||
func DropDisabledFields(pspSpec, oldPSPSpec *policy.PodSecurityPolicySpec) {
|
func DropDisabledFields(pspSpec, oldPSPSpec *policy.PodSecurityPolicySpec) {
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.ProcMountType) && !allowedProcMountTypesInUse(oldPSPSpec) {
|
if !utilfeature.DefaultFeatureGate.Enabled(features.ProcMountType) && !allowedProcMountTypesInUse(oldPSPSpec) {
|
||||||
pspSpec.AllowedProcMountTypes = nil
|
pspSpec.AllowedProcMountTypes = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user