Skip to content

Commit

Permalink
increase SafeTimeToAssumeNodeRebootedSeconds as in some clusters it's…
Browse files Browse the repository at this point in the history
… value is lower than minimum calculated value

Signed-off-by: Michael Shitrit <[email protected]>
  • Loading branch information
mshitrit committed Feb 1, 2024
1 parent 796fef2 commit 0293992
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/selfnoderemediationconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type SelfNodeRemediationConfigSpec struct {
// In an effort to prevent this, the operator ignores values lower than a minimum calculated from the
// ApiCheckInterval, ApiServerTimeout, MaxApiErrorThreshold, PeerDialTimeout, and PeerRequestTimeout fields.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default=180
// +kubebuilder:default=210
SafeTimeToAssumeNodeRebootedSeconds int `json:"safeTimeToAssumeNodeRebootedSeconds,omitempty"`

// Valid time units are "ms", "s", "m", "h".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ spec:
pattern: ^(0|([0-9]+(\.[0-9]+)?(ms|s|m|h)))$
type: string
safeTimeToAssumeNodeRebootedSeconds:
default: 180
default: 210
description: SafeTimeToAssumeNodeRebootedSeconds is the time after
which the healthy self node remediation agents will assume the unhealthy
node has been rebooted, and it is safe to recover affected workloads.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ spec:
pattern: ^(0|([0-9]+(\.[0-9]+)?(ms|s|m|h)))$
type: string
safeTimeToAssumeNodeRebootedSeconds:
default: 180
default: 210
description: SafeTimeToAssumeNodeRebootedSeconds is the time after
which the healthy self node remediation agents will assume the unhealthy
node has been rebooted, and it is safe to recover affected workloads.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ var _ = Describe("SNR Config Test", func() {
}, 5*time.Second, 250*time.Millisecond).Should(BeNil())

Expect(createdConfig.Spec.WatchdogFilePath).To(Equal("/dev/watchdog"))
Expect(createdConfig.Spec.SafeTimeToAssumeNodeRebootedSeconds).To(Equal(180))
Expect(createdConfig.Spec.SafeTimeToAssumeNodeRebootedSeconds).To(Equal(210))
Expect(createdConfig.Spec.MaxApiErrorThreshold).To(Equal(3))

Expect(createdConfig.Spec.PeerApiServerTimeout.Seconds()).To(BeEquivalentTo(5))
Expand Down

0 comments on commit 0293992

Please sign in to comment.