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: cmd/kar-controllers/app/options/options.go
+5-12Lines changed: 5 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,6 @@ package options
32
32
33
33
import (
34
34
"flag"
35
-
klog "k8s.io/klog/v2"
36
35
"os"
37
36
"strconv"
38
37
"strings"
@@ -51,10 +50,10 @@ type ServerOption struct {
51
50
BackoffTimeint// Number of seconds a job will go away for, if it can not be scheduled. Default is 20.
52
51
// Head of line job will not be bumped away for at least HeadOfLineHoldingTime seconds by higher priority jobs.
53
52
// Default setting to 0 disables this mechanism.
54
-
HeadOfLineHoldingTimeint
55
-
QuotaEnabledbool// Controller is to evaluate quota per request
56
-
QuotaRestURLstring
57
-
HealthProbeListenAddrstring
53
+
HeadOfLineHoldingTimeint
54
+
QuotaEnabledbool// Controller is to evaluate quota per request
55
+
QuotaRestURLstring
56
+
HealthProbeListenAddrstring
58
57
DispatchResourceReservationTimeoutint64
59
58
}
60
59
@@ -78,13 +77,11 @@ func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
78
77
fs.BoolVar(&s.Preemption, "preemption", s.Preemption, "Set controller to allow preemption if set to true. Note: when set to true, the Kubernetes Scheduler must be configured to enable preemption. Default is false.")
79
78
fs.IntVar(&s.BackoffTime, "backofftime", s.BackoffTime, "Number of seconds a job will go away for, if it can not be scheduled. Default is 20.")
80
79
fs.IntVar(&s.HeadOfLineHoldingTime, "headoflineholdingtime", s.HeadOfLineHoldingTime, "Number of seconds a job can stay at the Head Of Line without being bumped. Default is 0.")
81
-
fs.BoolVar(&s.QuotaEnabled,"quotaEnabled", s.QuotaEnabled,"Enable quota policy evaluation. Default is false.")
80
+
fs.BoolVar(&s.QuotaEnabled,"quotaEnabled", s.QuotaEnabled,"Enable quota policy evaluation. Default is false.")
82
81
fs.StringVar(&s.QuotaRestURL, "quotaURL", s.QuotaRestURL, "URL for ReST quota management. Default is none.")
83
82
fs.IntVar(&s.SecurePort, "secure-port", 6443, "The port on which to serve secured, authenticated access for metrics.")
84
83
fs.StringVar(&s.HealthProbeListenAddr, "healthProbeListenAddr", ":8081", "Listen address for health probes. Defaults to ':8081'")
85
84
fs.Int64Var(&s.DispatchResourceReservationTimeout, "dispatchResourceReservationTimeout", s.DispatchResourceReservationTimeout, "Resource reservation timeout for pods to be created once AppWrapper is dispatched, in millisecond. Defaults to '300000', 5 minutes")
0 commit comments