mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-28 21:55:48 +00:00
WIP: RC pods
This commit is contained in:
@@ -258,6 +258,10 @@ func DropDisabledAlphaFields(podSpec *api.PodSpec) {
|
||||
DropDisabledVolumeDevicesAlphaFields(podSpec)
|
||||
|
||||
DropDisabledRunAsGroupField(podSpec)
|
||||
|
||||
if !utilfeature.DefaultFeatureGate.Enabled(features.RuntimeClass) && podSpec.RuntimeClassName != "" {
|
||||
podSpec.RuntimeClassName = ""
|
||||
}
|
||||
}
|
||||
|
||||
// DropDisabledRunAsGroupField removes disabled fields from PodSpec related
|
||||
|
Reference in New Issue
Block a user