Skip to content

Commit 5392de2

Browse files
authored
Fix SlowStartAdditiveIncrease (#1857)
1 parent 6519b79 commit 5392de2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cmd/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ type options struct {
114114
edsCanaryAutoFailEnabled bool
115115
edsCanaryAutoFailMaxRestarts int
116116
edsCanaryAutoPauseMaxSlowStartDuration time.Duration
117+
edsSlowStartAdditiveIncrease string
117118
supportCilium bool
118119
datadogAgentEnabled bool
119120
datadogMonitorEnabled bool
@@ -164,6 +165,7 @@ func (opts *options) Parse() {
164165
// ExtendedDaemonset configuration
165166
flag.BoolVar(&opts.supportExtendedDaemonset, "supportExtendedDaemonset", false, "Support usage of Datadog ExtendedDaemonset CRD.")
166167
flag.StringVar(&opts.edsMaxPodUnavailable, "edsMaxPodUnavailable", "", "ExtendedDaemonset number of max unavailable pods during the rolling update")
168+
flag.StringVar(&opts.edsSlowStartAdditiveIncrease, "edsSlowStartAdditiveIncrease", "", "ExtendedDaemonset slow start additive increase")
167169
flag.StringVar(&opts.edsMaxPodSchedulerFailure, "edsMaxPodSchedulerFailure", "", "ExtendedDaemonset number of max pod scheduler failures")
168170
flag.DurationVar(&opts.edsCanaryDuration, "edsCanaryDuration", 10*time.Minute, "ExtendedDaemonset canary duration")
169171
flag.StringVar(&opts.edsCanaryReplicas, "edsCanaryReplicas", "", "ExtendedDaemonset number of canary pods")
@@ -295,6 +297,7 @@ func run(opts *options) error {
295297
SupportExtendedDaemonset: controller.ExtendedDaemonsetOptions{
296298
Enabled: opts.supportExtendedDaemonset,
297299
MaxPodUnavailable: opts.edsMaxPodUnavailable,
300+
SlowStartAdditiveIncrease: opts.edsSlowStartAdditiveIncrease,
298301
CanaryDuration: opts.edsCanaryDuration,
299302
CanaryReplicas: opts.edsCanaryReplicas,
300303
CanaryAutoPauseEnabled: opts.edsCanaryAutoPauseEnabled,

internal/controller/setup.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ type SetupOptions struct {
5353

5454
// ExtendedDaemonsetOptions defines ExtendedDaemonset options
5555
type ExtendedDaemonsetOptions struct {
56-
Enabled bool
57-
MaxPodUnavailable string
58-
MaxPodSchedulerFailure string
56+
Enabled bool
57+
MaxPodUnavailable string
58+
MaxPodSchedulerFailure string
59+
SlowStartAdditiveIncrease string
5960

6061
CanaryDuration time.Duration
6162
CanaryReplicas string

0 commit comments

Comments
 (0)