allErrs=append(allErrs,field.Invalid(scopePath.Child("leaseDuration"),ns.Scope.LeaseDuration.Duration,"must be greater than 0 in namespace-restricted mode"))
}
ifns.Scope.LeaseRenewInterval.Duration<=0{
allErrs=append(allErrs,field.Invalid(scopePath.Child("leaseRenewInterval"),ns.Scope.LeaseRenewInterval.Duration,"must be greater than 0 in namespace-restricted mode"))
allErrs=append(allErrs,field.Required(fldPath.Child("dgdrProfilingClusterRoleName"),"DGDR profiling ClusterRole name is required in cluster-wide mode"))
WithEventFilter(commoncontroller.EphemeralDeploymentEventFilter(r.Config)).// set the event filter to ignore resources handled by other controllers in namespace-restricted mode
WithEventFilter(commoncontroller.EphemeralDeploymentEventFilter(r.Config,r.RuntimeConfig)).// set the event filter to ignore resources handled by other controllers in namespace-restricted mode