func (o *EndpointSliceMirroringControllerOptions) Validate() []error {
	if o == nil {
		return nil
	}

	errs := []error{}

	if o.MirroringConcurrentServiceEndpointSyncs < mirroringMinConcurrentServiceEndpointSyncs {
		errs = append(errs, fmt.Errorf("mirroring-concurrent-service-endpoint-syncs must not be less than %d, but got %d", mirroringMinConcurrentServiceEndpointSyncs, o.MirroringConcurrentServiceEndpointSyncs))
	} else if o.MirroringConcurrentServiceEndpointSyncs > mirroringMaxConcurrentServiceEndpointSyncs {
		errs = append(errs, fmt.Errorf("mirroring-concurrent-service-endpoint-syncs must not be more than %d, but got %d", mirroringMaxConcurrentServiceEndpointSyncs, o.MirroringConcurrentServiceEndpointSyncs))
	}

	if o.MirroringMaxEndpointsPerSubset < mirroringMinMaxEndpointsPerSubset {
		errs = append(errs, fmt.Errorf("mirroring-max-endpoints-per-subset must not be less than %d, but got %d", mirroringMinMaxEndpointsPerSubset, o.MirroringMaxEndpointsPerSubset))
	} else if o.MirroringMaxEndpointsPerSubset > mirroringMaxMaxEndpointsPerSubset {
		errs = append(errs, fmt.Errorf("mirroring-max-endpoints-per-subset must not be more than %d, but got %d", mirroringMaxMaxEndpointsPerSubset, o.MirroringMaxEndpointsPerSubset))
	}

	return errs
}
// Validate checks validation of EndpointSliceMirroringControllerOptions.
Validate checks validation of EndpointSliceMirroringControllerOptions.
// Validate checks validation of EndpointSliceMirroringControllerOptions .
func (o *EndpointSliceMirroringControllerOptions) Validate() []error {
	if o == nil {
		return nil
	}
	errs := []error{}
	if o.MirroringConcurrentServiceEndpointSyncs < mirroringMinConcurrentServiceEndpointSyncs {
		errs = append(errs, fmt.Errorf("mirroring-concurrent-service-endpoint-syncs must not be less than %d, but got %d", mirroringMinConcurrentServiceEndpointSyncs, o.MirroringConcurrentServiceEndpointSyncs))
	} else if o.MirroringConcurrentServiceEndpointSyncs > mirroringMaxConcurrentServiceEndpointSyncs {
		errs = append(errs, fmt.Errorf("mirroring-concurrent-service-endpoint-syncs must not be more than %d, but got %d", mirroringMaxConcurrentServiceEndpointSyncs, o.MirroringConcurrentServiceEndpointSyncs))
	}
	if o.MirroringMaxEndpointsPerSubset < mirroringMinMaxEndpointsPerSubset {
		errs = append(errs, fmt.Errorf("mirroring-max-endpoints-per-subset must not be less than %d, but got %d", mirroringMinMaxEndpointsPerSubset, o.MirroringMaxEndpointsPerSubset))
	} else if o.MirroringMaxEndpointsPerSubset > mirroringMaxMaxEndpointsPerSubset {
		errs = append(errs, fmt.Errorf("mirroring-max-endpoints-per-subset must not be more than %d, but got %d", mirroringMaxMaxEndpointsPerSubset, o.MirroringMaxEndpointsPerSubset))
	}
	return errs
}
func ( o * EndpointSliceMirroringControllerOptions ) Validate ( ) [ ] error { if o == nil { return nil } errs := [ ] error { } if o . MirroringConcurrentServiceEndpointSyncs < mirroringMinConcurrentServiceEndpointSyncs { errs = append ( errs , fmt . Errorf ( " " , mirroringMinConcurrentServiceEndpointSyncs , o . MirroringConcurrentServiceEndpointSyncs ) ) } else if o . MirroringConcurrentServiceEndpointSyncs > mirroringMaxConcurrentServiceEndpointSyncs { errs = append ( errs , fmt . Errorf ( " " , mirroringMaxConcurrentServiceEndpointSyncs , o . MirroringConcurrentServiceEndpointSyncs ) ) } if o . MirroringMaxEndpointsPerSubset < mirroringMinMaxEndpointsPerSubset { errs = append ( errs , fmt . Errorf ( " " , mirroringMinMaxEndpointsPerSubset , o . MirroringMaxEndpointsPerSubset ) ) } else if o . MirroringMaxEndpointsPerSubset > mirroringMaxMaxEndpointsPerSubset { errs = append ( errs , fmt . Errorf ( " " , mirroringMaxMaxEndpointsPerSubset , o . MirroringMaxEndpointsPerSubset ) ) } return errs }
Validate checks validation of EndpointSliceMirroringControllerOptions.
Validate checks validation of EndpointSliceMirroringControllerOptions .