func dropDisabledEphemeralVolumeSourceAlphaFields(podSpec, oldPodSpec *api.PodSpec) {
	if !utilfeature.DefaultFeatureGate.Enabled(features.GenericEphemeralVolume) && !csiInUse(oldPodSpec) {
		for i := range podSpec.Volumes {
			podSpec.Volumes[i].Ephemeral = nil
		}
	}
}
// dropDisabledEphemeralVolumeSourceAlphaFields removes disabled alpha fields from []EphemeralVolumeSource.
// This should be called from PrepareForCreate/PrepareForUpdate for all pod specs resources containing a EphemeralVolumeSource
dropDisabledEphemeralVolumeSourceAlphaFields removes disabled alpha fields from []EphemeralVolumeSource.
This should be called from PrepareForCreate/PrepareForUpdate for all pod specs resources containing a EphemeralVolumeSource
// dropDisabledEphemeralVolumeSourceAlphaFields removes disabled alpha fields from [] EphemeralVolumeSource . // This should be called from PrepareForCreate / PrepareForUpdate for all pod specs resources containing a EphemeralVolumeSource
func dropDisabledEphemeralVolumeSourceAlphaFields(podSpec, oldPodSpec *api.PodSpec) {
	if !utilfeature.DefaultFeatureGate.Enabled(features.GenericEphemeralVolume) && !csiInUse(oldPodSpec) {
		for i := range podSpec.Volumes {
			podSpec.Volumes[i].Ephemeral = nil
		}
	}
}
func dropDisabledEphemeralVolumeSourceAlphaFields ( podSpec , oldPodSpec * api . PodSpec ) { if ! utilfeature . DefaultFeatureGate . Enabled ( features . GenericEphemeralVolume ) && ! csiInUse ( oldPodSpec ) { for i := range podSpec . Volumes { podSpec . Volumes [ i ] . Ephemeral = nil } } }
dropDisabledEphemeralVolumeSourceAlphaFields removes disabled alpha fields from []EphemeralVolumeSource.
dropDisabledEphemeralVolumeSourceAlphaFields removes disabled alpha fields from [] EphemeralVolumeSource .