func dropServiceDisabledFields(newSvc *api.Service, oldSvc *api.Service) {
	// Drop IPFamily if DualStack is not enabled
	if !utilfeature.DefaultFeatureGate.Enabled(features.IPv6DualStack) && !serviceIPFamilyInUse(oldSvc) {
		newSvc.Spec.IPFamily = nil
	}

	// Drop TopologyKeys if ServiceTopology is not enabled
	if !utilfeature.DefaultFeatureGate.Enabled(features.ServiceTopology) && !topologyKeysInUse(oldSvc) {
		newSvc.Spec.TopologyKeys = nil
	}
}
// dropServiceDisabledFields drops fields that are not used if their associated feature gates
// are not enabled.  The typical pattern is:
//     if !utilfeature.DefaultFeatureGate.Enabled(features.MyFeature) && !myFeatureInUse(oldSvc) {
//         newSvc.Spec.MyFeature = nil
//     }
dropServiceDisabledFields drops fields that are not used if their associated feature gates
are not enabled.  The typical pattern is:
if !utilfeature.DefaultFeatureGate.Enabled(features.MyFeature) && !myFeatureInUse(oldSvc) {
newSvc.Spec.MyFeature = nil
}
// dropServiceDisabledFields drops fields that are not used if their associated feature gates // are not enabled . The typical pattern is : // if !utilfeature . DefaultFeatureGate . Enabled ( features . MyFeature ) && !myFeatureInUse ( oldSvc ) { // newSvc . Spec . MyFeature = nil // }
func dropServiceDisabledFields(newSvc *api.Service, oldSvc *api.Service) {
	if !utilfeature.DefaultFeatureGate.Enabled(features.IPv6DualStack) && !serviceIPFamilyInUse(oldSvc) {
		newSvc.Spec.IPFamily = nil
	}
	if !utilfeature.DefaultFeatureGate.Enabled(features.ServiceTopology) && !topologyKeysInUse(oldSvc) {
		newSvc.Spec.TopologyKeys = nil
	}
}
func dropServiceDisabledFields ( newSvc * api . Service , oldSvc * api . Service ) { if ! utilfeature . DefaultFeatureGate . Enabled ( features . IPv6DualStack ) && ! serviceIPFamilyInUse ( oldSvc ) { newSvc . Spec . IPFamily = nil } if ! utilfeature . DefaultFeatureGate . Enabled ( features . ServiceTopology ) && ! topologyKeysInUse ( oldSvc ) { newSvc . Spec . TopologyKeys = nil } }
dropServiceDisabledFields drops fields that are not used if their associated feature gates
are not enabled.
dropServiceDisabledFields drops fields that are not used if their associated feature gates are not enabled .
// Drop IPFamily if DualStack is not enabled // Drop TopologyKeys if ServiceTopology is not enabled