func ValidateConditionalEndpoints(endpoints, oldEndpoints *api.Endpoints) field.ErrorList {
	var errs field.ErrorList
	// If the SCTPSupport feature is disabled, and the old object isn't using the SCTP feature, prevent the new object from using it
	if !utilfeature.DefaultFeatureGate.Enabled(features.SCTPSupport) && len(endpointsSCTPFields(oldEndpoints)) == 0 {
		for _, f := range endpointsSCTPFields(endpoints) {
			errs = append(errs, field.NotSupported(f, api.ProtocolSCTP, []string{string(api.ProtocolTCP), string(api.ProtocolUDP)}))
		}
	}
	return errs
}
// ValidateConditionalEndpoints validates conditionally valid fields.
ValidateConditionalEndpoints validates conditionally valid fields.
// ValidateConditionalEndpoints validates conditionally valid fields .
func ValidateConditionalEndpoints(endpoints, oldEndpoints *api.Endpoints) field.ErrorList {
	var errs field.ErrorList
	if !utilfeature.DefaultFeatureGate.Enabled(features.SCTPSupport) && len(endpointsSCTPFields(oldEndpoints)) == 0 {
		for _, f := range endpointsSCTPFields(endpoints) {
			errs = append(errs, field.NotSupported(f, api.ProtocolSCTP, []string{string(api.ProtocolTCP), string(api.ProtocolUDP)}))
		}
	}
	return errs
}
func ValidateConditionalEndpoints ( endpoints , oldEndpoints * api . Endpoints ) field . ErrorList { var errs field . ErrorList if ! utilfeature . DefaultFeatureGate . Enabled ( features . SCTPSupport ) && len ( endpointsSCTPFields ( oldEndpoints ) ) == 0 { for _ , f := range endpointsSCTPFields ( endpoints ) { errs = append ( errs , field . NotSupported ( f , api . ProtocolSCTP , [ ] string { string ( api . ProtocolTCP ) , string ( api . ProtocolUDP ) } ) ) } } return errs }
ValidateConditionalEndpoints validates conditionally valid fields.
ValidateConditionalEndpoints validates conditionally valid fields .
// If the SCTPSupport feature is disabled, and the old object isn't using the SCTP feature, prevent the new object from using it