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
Added support for configuring the pvc count in a group.
The min and max values are 1 and 100, anything less and more than
that would result in an error in the controller manager.
Also, added necessary unit tests to validate the values in
the config.
Signed-off-by: Nikhil-Ladha <[email protected]>
Copy file name to clipboardExpand all lines: cmd/manager/main.go
+5-3
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ func main() {
101
101
flag.BoolVar(&showVersion, "version", false, "Print Version details")
102
102
flag.StringVar(&cfg.SchedulePrecedence, "schedule-precedence", "", "The order of precedence in which schedule of reclaimspace and keyrotation is considered. Possible values are sc-only")
103
103
flag.BoolVar(&enableAuth, "enable-auth", true, "Enables TLS and adds bearer token to the headers (enabled by default)")
104
+
flag.IntVar(&cfg.MaxGroupPVC, "max-group-pvc", cfg.MaxGroupPVC, "Maximum number of PVCs allowed in a volume group")
|`reclaim-space-timeout`|`"3m"`| Timeout for reclaimspace operation |
10
+
|`max-concurrent-reconciles`|`"100"`| Maximum number of concurrent reconciles |
11
+
|`max-group-pvcs`|`"100"`| Maximum number of PVCs allowed in a volume group |
11
12
12
13
[`csi-addons-config` ConfigMap](../deploy/controller/csi-addons-config.yaml) is provided as an example.
13
14
14
15
> Note: The operator pod needs to be restarted for any change in configuration to take effect.
16
+
>
17
+
> Note: `max-group-pvcs` default value is set based on ceph's support/testing. User can tweak this value based on the supported count for their storage vendor.
0 commit comments