You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: addon-resizer/nanny/main/pod_nanny.go
+26-10Lines changed: 26 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,12 @@ import (
40
40
41
41
var (
42
42
// Flags to define the resource requirements.
43
-
configDir=flag.String("config-dir", nannyconfig.NoValue, "Path of configuration containing base resource requirements.")
43
+
configDir=flag.String("config-dir", nannyconfig.NoValue, "Path of configuration containing base resource requirements.")
44
+
// Following empty values ("") will be overwritten by defaults specified in apis/nannyconfig/v1alpha1/defaults.go
45
+
baseCPU=flag.String("cpu", "", "The base CPU resource requirement.")
46
+
cpuPerNode=flag.String("extra-cpu", "", "The amount of CPU to add per node.")
47
+
baseMemory=flag.String("memory", "", "The base memory resource requirement.")
48
+
memoryPerNode=flag.String("extra-memory", "", "The amount of memory to add per node.")
44
49
baseStorage=flag.String("storage", nannyconfig.NoValue, "The base storage resource requirement.")
45
50
storagePerNode=flag.String("extra-storage", "0Gi", "The amount of storage to add per node.")
46
51
threshold=flag.Int("threshold", 0, "A number between 0-100. The dependent's resources are rewritten when they deviate from expected by more than threshold.")
0 commit comments