[fix] Switch to test-e2e context if it exists already#181
Open
jdheyburn wants to merge 2 commits into
Open
Conversation
Signed-off-by: Joseph Heyburn <jdheyburn@gmail.com>
bjosv
previously approved these changes
May 14, 2026
Co-authored-by: Björn Svensson <bjorn.a.svensson@est.tech> Signed-off-by: Joseph Heyburn <34041368+jdheyburn@users.noreply.github.com>
bjosv
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR closes <Issue #>
Summary
Currently,
make test-e2ewill check if it needs to create a kind cluster for e2e tests. If it doesn't exist, it uses kind to create one. Kind create cluster will switch the kubecfg context to this new cluster.If the cluster exists, the switch does not happen, and so e2e tests are ran against the current context.
This PR will switch contexts to the e2e cluster if it exists.
Features / Behaviour Changes
N/A
Implementation
N/A
Limitations
N/A
Testing
Tested locally and validated it.
Checklist
Before submitting the PR make sure the following are checked:
pre-commit run --all-filesor hooks on commit)