Update flag descriptions for watch cache
Kubernetes-commit: 2ea3afe425836253202dd36239d8b54149ccb53c
This commit is contained in:
		
							parent
							
								
									b60a90b526
								
							
						
					
					
						commit
						010d347f35
					
				|  | @ -137,13 +137,18 @@ func (s *EtcdOptions) AddFlags(fs *pflag.FlagSet) { | ||||||
| 	fs.IntVar(&s.DefaultWatchCacheSize, "default-watch-cache-size", s.DefaultWatchCacheSize, | 	fs.IntVar(&s.DefaultWatchCacheSize, "default-watch-cache-size", s.DefaultWatchCacheSize, | ||||||
| 		"Default watch cache size. If zero, watch cache will be disabled for resources that do not have a default watch size set.") | 		"Default watch cache size. If zero, watch cache will be disabled for resources that do not have a default watch size set.") | ||||||
| 
 | 
 | ||||||
|  | 	fs.MarkDeprecated("default-watch-cache-size", | ||||||
|  | 		"watch caches are sized automatically and this flag will be removed in a future version") | ||||||
|  | 
 | ||||||
| 	fs.StringSliceVar(&s.WatchCacheSizes, "watch-cache-sizes", s.WatchCacheSizes, ""+ | 	fs.StringSliceVar(&s.WatchCacheSizes, "watch-cache-sizes", s.WatchCacheSizes, ""+ | ||||||
| 		"Watch cache size settings for some resources (pods, nodes, etc.), comma separated. "+ | 		"Watch cache size settings for some resources (pods, nodes, etc.), comma separated. "+ | ||||||
| 		"The individual setting format: resource[.group]#size, where resource is lowercase plural (no version), "+ | 		"The individual setting format: resource[.group]#size, where resource is lowercase plural (no version), "+ | ||||||
| 		"group is omitted for resources of apiVersion v1 (the legacy core API) and included for others, "+ | 		"group is omitted for resources of apiVersion v1 (the legacy core API) and included for others, "+ | ||||||
| 		"and size is a number. It takes effect when watch-cache is enabled. "+ | 		"and size is a number. This option is only meaningful for resources built into the apiserver, "+ | ||||||
| 		"Some resources (replicationcontrollers, endpoints, nodes, pods, services, apiservices.apiregistration.k8s.io) "+ | 		"not ones defined by CRDs or aggregated from external servers, and is only consulted if the "+ | ||||||
| 		"have system defaults set by heuristics, others default to default-watch-cache-size") | 		"watch-cache is enabled. The only meaningful size setting to supply here is zero, which means to "+ | ||||||
|  | 		"disable watch caching for the associated resource; all non-zero values are equivalent and mean "+ | ||||||
|  | 		"to not disable watch caching for that resource") | ||||||
| 
 | 
 | ||||||
| 	fs.StringVar(&s.StorageConfig.Type, "storage-backend", s.StorageConfig.Type, | 	fs.StringVar(&s.StorageConfig.Type, "storage-backend", s.StorageConfig.Type, | ||||||
| 		"The storage backend for persistence. Options: 'etcd3' (default).") | 		"The storage backend for persistence. Options: 'etcd3' (default).") | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue