mirror of
				https://github.com/redhat-developer/odo.git
				synced 2025-10-19 03:06:19 +03:00 
			
		
		
		
	* Preference(Timeout) int > time.Duration * Fix odo preference --help for unset examples * Preference(PushTimeout) int > time.Duration * Change set, and unset messages * Preference(RegistryCacheTime) int > time.Duration * use cobra.ExactArgs for set, and unset * mockgen * Unit tests and integration tests * Fix unit test failure * Update k8s.io/utils pkg * Philippe's review * Fix error message * Philippe's review Signed-off-by: Parthvi Vala <pvala@redhat.com> * Add minimum acceptable value for preferences accepting time.Difference type * Fix unit test failure Signed-off-by: Parthvi Vala <pvala@redhat.com> * Add migration plan with a warning, add better error message for incompatible formats Signed-off-by: Parthvi Vala <pvala@redhat.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			299 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			299 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package preference
 | 
						|
 | 
						|
type MinimumDurationValueError struct{}
 | 
						|
 | 
						|
func NewMinimumDurationValueError() MinimumDurationValueError {
 | 
						|
	return MinimumDurationValueError{}
 | 
						|
}
 | 
						|
 | 
						|
func (v MinimumDurationValueError) Error() string {
 | 
						|
	return "value must be a positive Duration (e.g. 4s, 5m, 1h); minimum value: 1s"
 | 
						|
}
 |