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

Auto-detect cluster type for proper webhook server's hostname #721

Merged
merged 1 commit into from
Mar 28, 2021

Conversation

nolar
Copy link
Owner

@nolar nolar commented Mar 27, 2021

In #708, the webhook server was made specific (and K3d/K3s is configured). However, when tested in the "thorough tests" after the merge, the e2e tests failed on the Minikube cluster — because it has a different magic hostname: host.minikube.internal instead of host.k3d.internal.

To make it work automatically in CI/CD, and in most other cases, this PR adds a feature to automatically detect the cluster type (among the limited list of options: Minikube, K3d/K3s only). Users can also configure auto-tunnel, which will fall back to ngrok if the cluster type cannot be detected; the auto-server will run a simple local server in that case.

@nolar nolar added automation CI/CD: testing, linting, releasing automatically bug Something isn't working labels Mar 27, 2021
@lgtm-com
Copy link

lgtm-com bot commented Mar 27, 2021

This pull request fixes 31 alerts when merging a127c49 into db2c6cd - view on LGTM.com

fixed alerts:

  • 31 for Module-level cyclic import

@nolar nolar force-pushed the webhook-auto-servers-tunnels branch 2 times, most recently from c0d513d to ce57b60 Compare March 28, 2021 10:02
@nolar nolar force-pushed the webhook-auto-servers-tunnels branch from ce57b60 to 171c4b0 Compare March 28, 2021 10:24
@nolar nolar merged commit c4a4448 into main Mar 28, 2021
@nolar nolar deleted the webhook-auto-servers-tunnels branch March 28, 2021 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation CI/CD: testing, linting, releasing automatically bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant