Skip to content

Commit 09a6b04

Browse files
committed
Allow to configure SlowStartAdditiveIncrease
1 parent c39efd9 commit 09a6b04

File tree

1 file changed

+7
-2
lines changed
  • internal/controller/datadogagent/component/agent

1 file changed

+7
-2
lines changed

internal/controller/datadogagent/component/agent/new.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ func NewExtendedDaemonset(owner metav1.Object, edsOptions *ExtendedDaemonsetOpti
6666
type ExtendedDaemonsetOptions struct {
6767
Enabled bool
6868

69-
MaxPodUnavailable string
70-
MaxPodSchedulerFailure string
69+
MaxPodUnavailable string
70+
MaxPodSchedulerFailure string
71+
SlowStartAdditiveIncrease string
7172

7273
CanaryDuration time.Duration
7374
CanaryReplicas string
@@ -94,6 +95,10 @@ func defaultEDSSpec(options *ExtendedDaemonsetOptions) edsv1alpha1.ExtendedDaemo
9495
spec.Strategy.RollingUpdate.MaxPodSchedulerFailure = apiutils.NewIntOrStringPointer(options.MaxPodSchedulerFailure)
9596
}
9697

98+
if options.SlowStartAdditiveIncrease != "" {
99+
spec.Strategy.RollingUpdate.SlowStartAdditiveIncrease = apiutils.NewIntOrStringPointer(options.SlowStartAdditiveIncrease)
100+
}
101+
97102
if options.CanaryDuration != 0 {
98103
spec.Strategy.Canary.Duration = &metav1.Duration{Duration: options.CanaryDuration}
99104
}

0 commit comments

Comments
 (0)