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

[JENKINS-73138] Replace JenkinsRuleNonLocalhost and test-in-k8s with ktunnel #1593

Merged
merged 4 commits into from
Jul 30, 2024

Conversation

jglick
Copy link
Member

@jglick jglick commented Jul 26, 2024

Supersedes #1567 and a lot of historical tricks like #1495 with a simpler reverse proxy system as outlined in https://issues.jenkins.io/browse/JENKINS-73138.

We possibly could retain test-in-k8s.sh as an alternative, since in that mode the HTTP (and TCP) ports are being proxied by a K8s Service, and I think in a single-node cluster like Kind if you pick type: NodePort the connection will be treated as coming from the local node so listening on 127.0.0.1 would work. But K8s networking may be more complicated than that so I am not sure. Anyway it seems best to have a single mode of operations in CI and for local development to minimize confusion, and running Maven inside the pod in CI builds is nonstandard.

@jglick jglick added the chore Maintenance label Jul 26, 2024
Copy link
Member Author

Choose a reason for hiding this comment

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

Seems to predate JEP-229.

@@ -2,6 +2,8 @@
set -euxo pipefail
cd $(dirname $0)

: ${WORKSPACE_TMP:=/tmp}
Copy link
Member Author

Choose a reason for hiding this comment

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

Makes it simpler to try this script locally.

@jglick jglick marked this pull request as ready for review July 27, 2024 00:05
@jglick jglick requested a review from a team as a code owner July 27, 2024 00:05
@amuniz
Copy link
Member

amuniz commented Jul 30, 2024

Tested locally.

@jglick jglick added developer and removed chore Maintenance labels Jul 30, 2024
@jglick jglick merged commit 78bd4a1 into jenkinsci:master Jul 30, 2024
8 checks passed
@jglick jglick deleted the JenkinsRuleNonLocalhost-JENKINS-73138 branch July 30, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants