Fix typo and pass the environment variable required to enable watchcache consistency checking in GCE tests
Kubernetes-commit: 8b0294daed236dcaf2b2f74ad4a38405118ebbaa
This commit is contained in:
		
							parent
							
								
									7b991eb8ee
								
							
						
					
					
						commit
						36c1a58d7e
					
				|  | @ -49,12 +49,12 @@ var ( | ||||||
| 	// List latency SLO (30 seconds) and timeout (1 minute).
 | 	// List latency SLO (30 seconds) and timeout (1 minute).
 | ||||||
| 	ConsistencyCheckPeriod = 5 * time.Minute | 	ConsistencyCheckPeriod = 5 * time.Minute | ||||||
| 	// ConsistencyCheckerEnabled enables the consistency checking mechanism for cache.
 | 	// ConsistencyCheckerEnabled enables the consistency checking mechanism for cache.
 | ||||||
| 	// Based on KUBE_WATCHCACHE_CONSISTANCY_CHECKER environment variable.
 | 	// Based on KUBE_WATCHCACHE_CONSISTENCY_CHECKER environment variable.
 | ||||||
| 	ConsistencyCheckerEnabled = false | 	ConsistencyCheckerEnabled = false | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| func init() { | func init() { | ||||||
| 	ConsistencyCheckerEnabled, _ = strconv.ParseBool(os.Getenv("KUBE_WATCHCACHE_CONSISTANCY_CHECKER")) | 	ConsistencyCheckerEnabled, _ = strconv.ParseBool(os.Getenv("KUBE_WATCHCACHE_CONSISTENCY_CHECKER")) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func NewCacheDelegator(cacher *Cacher, storage storage.Interface) *CacheDelegator { | func NewCacheDelegator(cacher *Cacher, storage storage.Interface) *CacheDelegator { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue