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
This patch refactors the schedule-precedence logic
to allow the value to be overridden by a ConfigMap.
The default mode of operation still prefers PVCs first
as source of key rotation and reclaimspace annotations.
The values for `schedule-precedence` keys are now concretely
defined as either `pvc` or `storageclass`.
Signed-off-by: Niraj Yadav <niryadav@redhat.com>
Copy file name to clipboardExpand all lines: cmd/manager/main.go
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ import (
20
20
"context"
21
21
"crypto/tls"
22
22
"flag"
23
+
"fmt"
23
24
"os"
24
25
"time"
25
26
@@ -100,7 +101,7 @@ func main() {
100
101
flag.BoolVar(&enableAdmissionWebhooks, "enable-admission-webhooks", false, "[DEPRECATED] Enable the admission webhooks")
101
102
flag.BoolVar(&secureMetrics, "metrics-secure", true, "If set, the metrics endpoint is served securely via HTTPS. Use --metrics-secure=false to use HTTP instead.")
102
103
flag.BoolVar(&showVersion, "version", false, "Print Version details")
103
-
flag.StringVar(&cfg.SchedulePrecedence, "schedule-precedence", "", "The order of precedence in which schedule of reclaimspace and keyrotation is considered. Possible values are sc-only")
104
+
flag.StringVar(&cfg.SchedulePrecedence, "schedule-precedence", util.SchedulePVC, fmt.Sprintf("The order of precedence in which schedule of reclaimspace and keyrotation is considered. Possible values are %q and %q. Defaults to %q", util.SchedulePVC, util.ScheduleSC, util.SchedulePVC))
104
105
flag.BoolVar(&enableAuth, "enable-auth", true, "Enables TLS and adds bearer token to the headers (enabled by default)")
105
106
flag.IntVar(&cfg.MaxGroupPVC, "max-group-pvc", cfg.MaxGroupPVC, "Maximum number of PVCs allowed in a volume group")
0 commit comments