Giter Club home page Giter Club logo

konf-go's People

Contributors

aohoyd avatar arikgrahl avatar dennisstritzke avatar nholloh avatar simontheleg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

konf-go's Issues

Allow aliasing when importing kubeconfigs

When importing kubeconfigs it should be possible to use aliases for context and cluster. This makes it easier for users to use their own names to identify konfs, without the need to rename them first.

Handling in combination with the multi-kubeconfig feature from #43 tbd.

`$KUBECONFIG` not set after `ZSH` shell is reloaded

Hiya ๐Ÿ‘‹

With the following minimal .zshrc, My $KUBECONFIG variable is still not set after restarting the terminal.

.zshrc

# Konf
source <(konf-go shellwrapper zsh)
# Auto load context
export KUBECONFIG=$(konf set -)
# Autocompletion
source <(konf completion zsh)

Actual Output
image

Expected Output
$KUBECONFIG is set upon startup and automatically loads the default context so that it's ready to use.

ZSH: zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
konf-go: "GitVersion":"0.5.1","GitCommit":"8ad03362b014b0ae5539dd6bd93c65d65ac15f7a","BuildDate":"2022-10-30T16:48:51Z","GoVersion":"go1.19","Platform":"linux/amd64","Compiler":"gc"}

Context changes (namespace) should be commited to store files

Whenever I change context, the currently selected namespace is reset to the value set on import.

Ideally, the namespace would be updated in the store, so that later switches to the same context will continue in the same namespace.

This seems challenging, since we would have to commit changes to the store from a call to the current context.
Maybe this would not be interesting for everyone, so maybe make it a flag to konf namespace?

Better handling of namespace prompt when connection timeout

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.