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

Better handling of namespace prompt when connection timeout #27

Open
SimonTheLeg opened this issue Jul 24, 2022 · 0 comments
Open

Better handling of namespace prompt when connection timeout #27

SimonTheLeg opened this issue Jul 24, 2022 · 0 comments

Comments

@SimonTheLeg
Copy link
Owner

When you have no connection to a cluster, and run konf ns a blocking, but empty dialogue is displayed which only

image

Only after a while the error message appears:

Error: Get "<sanitized>/api/v1/namespaces": dial tcp <sanitized>: i/o timeout
Usage:
  konf namespace [flags]

Aliases:
  namespace, ns

Flags:
  -h, --help   help for namespace

Global Flags:
      --konf-dir string   konfs directory for kubeconfigs and tracking active konfs (default is $HOME/.kube/konfs)
      --silent            suppress log output if set to true (default is false)

Error: Get "<sanitized>/api/v1/namespaces": dial tcp <sanitized>: i/o timeout

Steps to reproduces:

  1. Select a cluster which you cannot connect to
  2. run konf ns

Expected behaviour:
Should display some hint, that we are attempting to connect to the cluster, before we display the empty dialogue.

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

No branches or pull requests

1 participant