Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Eviction E2E #996

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

Arvindthiru
Copy link
Contributor

@Arvindthiru Arvindthiru commented Dec 19, 2024

Description of your changes

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@Arvindthiru
Copy link
Contributor Author

Addressed comment from #959 (comment)

@Arvindthiru Arvindthiru marked this pull request as ready for review December 31, 2024 01:40
test/e2e/placement_eviction_test.go Outdated Show resolved Hide resolved
test/e2e/placement_eviction_test.go Outdated Show resolved Hide resolved
test/e2e/placement_eviction_test.go Show resolved Hide resolved
test/e2e/placement_eviction_test.go Outdated Show resolved Hide resolved
test/e2e/placement_eviction_test.go Outdated Show resolved Hide resolved
test/e2e/placement_eviction_test.go Outdated Show resolved Hide resolved
@Arvindthiru Arvindthiru force-pushed the rolloutEvictionE2E branch 2 times, most recently from 70f5a4f to bbb380e Compare January 3, 2025 22:34

It("should ensure no resources exist on evicted member cluster with taint", func() {
taintClusters := buildClustersFromNames(taintClusterNames)
for _, cluster := range taintClusters {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is only one cluster in the taint list, why using a loop? Should we taint two clusters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buildClustersFromNames is a util function that takes in a list if cluster names and returns the list of E2E cluster objects. Hence we need to iterate through the list. In this file we only taint one cluster but we taint multiple clusters here for reference

taintClusterNames = []string{memberCluster1EastProdName, memberCluster2EastCanaryName}

It("should still place resources on the all available member clusters", checkIfPlacedWorkResourcesOnAllMemberClusters)
})

var _ = Describe("ClusterResourcePlacement eviction of bound binding - PickAll CRP, PDB specified to protect resources on all clusters, eviction denied", Ordered, func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a pickFixed case? Is there a pickAll but PDB specified maxUnavailabe case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants