Skip to content

Commit

Permalink
ci: Excluded cluster should not be run for Soak Testing (aws#6041)
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam authored Apr 15, 2024
1 parent 9a07a6d commit ed7564c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/hack/soak/get_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ func main() {
createNewCluster = false
}

if strings.HasPrefix(c, "soak-periodic-") {
if strings.HasPrefix(c, "soak-periodic-") && !slices.Contains(excludedClustersCleanup, c) {
outputList = append(outputList, &cluster{
Name: c,
GitRef: clusterDetails.Cluster.Tags["test/git_ref"],
Cleanup: lo.Ternary(
slices.Contains(excludedClustersCleanup, c),
false,
clusterDetails.Cluster.CreatedAt.Before(expirationTime),
),
Name: c,
GitRef: clusterDetails.Cluster.Tags["test/git_ref"],
Cleanup: clusterDetails.Cluster.CreatedAt.Before(expirationTime),
})
}
}
Expand Down

0 comments on commit ed7564c

Please sign in to comment.