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

Ensure when alternatebackends is empty, canary weight should be 0 #12

Merged

Conversation

jgwest
Copy link
Member

@jgwest jgwest commented Jun 14, 2024

This PR is a fix to one of the E2E tests:

  • When .spec.alternatebackends is empty, this means that the canary will be receiving no traffic. This is equivalent to canary weight of 0.
  • In the test where we verify weights, we should ensure that when .spec.alternateBackends is empty, that the canary weight is 0.
  • This PR adds that check to the appropriate E2E test.

We don't currently have E2E tests running as part of PRs in this repo, but I have manually run the E2E test to verify it works as expected.

@jgwest jgwest force-pushed the add-alternate-role-test-check-april-2024 branch from d8818e1 to ad4ab7d Compare June 14, 2024 14:54
@jgwest jgwest requested a review from chetan-rns July 24, 2024 21:37
Copy link
Collaborator

@chetan-rns chetan-rns left a comment

Choose a reason for hiding this comment

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

Thanks @jgwest

/lgtm

@jgwest
Copy link
Member Author

jgwest commented Jul 25, 2024

Thanks @chetan-rns!

@jgwest jgwest merged commit e993c28 into argoproj-labs:main Jul 25, 2024
4 checks passed
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