Skip to content

Commit 3e9d11b

Browse files
committed
Migrating flags off main.go to a separate package
1 parent 173a4bd commit 3e9d11b

File tree

4 files changed

+558
-495
lines changed

4 files changed

+558
-495
lines changed

cluster-autoscaler/config/autoscaling_options.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,30 @@ type AutoscalingOptions struct {
318318
// It only refers to check capacity ProvisioningRequests, but if not empty, best-effort atomic ProvisioningRequests processing is disabled in this instance.
319319
// Not recommended: Until CA 1.35, ProvisioningRequests with this name as prefix in their class will be also processed.
320320
CheckCapacityProcessorInstance string
321+
// MaxInactivityTime is the maximum time from last recorded autoscaler activity before automatic restart.
322+
MaxInactivityTime time.Duration
323+
// MaxFailingTime is the maximum time from last recorded successful autoscaler run before automatic restart.
324+
MaxFailingTime time.Duration
325+
// DebuggingSnapshotEnabled is used to enable/disable debugging snapshot creation.
326+
DebuggingSnapshotEnabled bool
327+
// EnableProfiling is debug/pprof endpoint enabled.
328+
EnableProfiling bool
329+
// Address is the address to expose prometheus metrics.
330+
Address string
331+
// EmitPerNodeGroupMetrics is used to enable/disable emitting per node group metrics.
332+
EmitPerNodeGroupMetrics bool
333+
// FrequentLoopsEnabled is used to enable/disable frequent loops.
334+
FrequentLoopsEnabled bool
335+
// ScanInterval is how often cluster is reevaluated for scale up or down
336+
ScanInterval time.Duration
337+
// ForceDaemonSets is used to block scale-up of node groups too small for all suitable Daemon Sets pods.
338+
ForceDaemonSets bool
339+
// NodeInfoCacheExpireTime is the time after which the node info cache expires for each item, Default value is 10 years.
340+
NodeInfoCacheExpireTime time.Duration
341+
// ProactiveScaleupEnabled is used to enable/disable proactive scale up.
342+
ProactiveScaleupEnabled bool
343+
// PodInjectionLimit limits total number of pods while injecting fake pods.
344+
PodInjectionLimit int
321345
}
322346

323347
// KubeClientOptions specify options for kube client

0 commit comments

Comments
 (0)