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

Updates to local run #1580

Merged
merged 3 commits into from
Jul 9, 2020
Merged

Updates to local run #1580

merged 3 commits into from
Jul 9, 2020

Conversation

kensipe
Copy link
Member

@kensipe kensipe commented Jul 8, 2020

Signed-off-by: Ken Sipe kensipe@gmail.com

  • Fixes a typo
  • Changes some grammar
  • Makes cert generation a single command (instead of answering a series of questions)
  • Adds notes and tips

I'm very interested in making this easier... but this is step 1.

Signed-off-by: Ken Sipe <kensipe@gmail.com>
Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

Parsing ngrok tunnel url makes it more complicated than it should be IMHO. but otherwise LGTM

test/README.md Outdated
@@ -149,6 +155,8 @@ webhooks:

The difference between this one and the one generate by the `kudo init --unsafe-self-signed-webhook-ca` command, (see this [method](pkg/kudoctl/kudoinit/prereq/webhook.go:163) for more information) is the usage of `webhooks[].clientConfig.url` (which points to our ngrok-tunnel) instead of `webhooks[].clientConfig.Service`.

**note:** The url used by ngrok changes for each run of ngrok. It is possible to get the current url with `curl -s localhost:4040/api/tunnels | jq '.tunnels[1].public_url'`
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's more complicated than it should be: the tunnel only exists while the ngrok is running in your terminal window and it already gives you the URL. No need to get it from the API.

Signed-off-by: Ken Sipe <kensipe@gmail.com>
@kensipe kensipe merged commit f25a54a into main Jul 9, 2020
@kensipe kensipe deleted the ken/local-run-update branch July 9, 2020 13:13
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