Skip to content

Commit a7db767

Browse files
committed
disable rollback window by default
1 parent 37f40a9 commit a7db767

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

_meta/config/common.reference.p2.yml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ inputs:
123123
# # rollback settings
124124
# rollback:
125125
# # duration in which an upgraded Agent may be manually rolled back.
126-
# window: 168h
126+
# window: 0
127127

128128
# agent.process:
129129
# # timeout for creating new processes. when process is not successfully created by this timeout

elastic-agent.reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ inputs:
129129
# # rollback settings
130130
# rollback:
131131
# # duration in which an upgraded Agent may be manually rolled back.
132-
# window: 168h
132+
# window: 0
133133

134134
# agent.process:
135135
# # timeout for creating new processes. when process is not successfully created by this timeout

internal/pkg/agent/configuration/upgrade.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const (
1515

1616
// period during which an upgraded Agent can be asked to rollback to the previous
1717
// Agent version on disk.
18-
defaultRollbackWindowDuration = 7 * 24 * time.Hour // 7 days
18+
// this is temporarily set to 0 to disable the rollback window until manual rollback functionality is complete.
19+
// defaultRollbackWindowDuration = 7 * 24 * time.Hour // 7 days
20+
defaultRollbackWindowDuration = 0
1921
)
2022

2123
// UpgradeConfig is the configuration related to Agent upgrades.

0 commit comments

Comments
 (0)