Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ func createDisruptionJunit(
secondDetails, percentDetails = "added an additional 10s of grace for single node cluster", "added an additional 40% of grace for single node cluster"
}

if jobType.Topology == "dual" {
graceSeconds, gracePercent = 60, 1.4
secondDetails, percentDetails = "added an additional 60s of grace for dual replica cluster", "added an additional 40% of grace for dual replica cluster"
}

allowedSecsPlusGrace := allowedSecs + graceSeconds
allowedSecsPlusPercent := allowedSecs * gracePercent

Expand Down
2 changes: 2 additions & 0 deletions pkg/monitortestlibrary/platformidentification/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ func GetJobType(ctx context.Context, clientConfig *rest.Config) (*JobType, error
topology = "single"
case configv1.ExternalTopologyMode:
topology = "external"
case configv1.DualReplicaTopologyMode:
topology = "dual"
}

return &JobType{
Expand Down