GithubHelp home page GithubHelp logo

kubectl-ipick's People

Contributors

cregev avatar kaplanelad 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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

orad developgo

kubectl-ipick's Issues

Run linter and godmt

We have a few golinter errors that i needs to fix:

printers/table.go:24:16: Error return value of `json.Unmarshal` is not checked (errcheck)
	json.Unmarshal(data, &dataList)
	              ^
printers/table.go:31:25: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
	fmt.Fprintf(w, "%s\n", fmt.Sprintf(strings.Join(columnNames, "\t")))
	                       ^
prompt/prompt.go:17:2: S1038: should use fmt.Printf instead of fmt.Print(fmt.Sprintf(...)) (gosimple)
	fmt.Print(fmt.Sprintf("%s: ", text))
	^
prompt/prompt.go:27:3: S1038: should use fmt.Printf instead of fmt.Print(fmt.Sprintf(...)) (gosimple)
		fmt.Print(fmt.Sprintf("Number must be between %d - %d: ", 1, selectCount))
		^
prompt/prompt.go:36:2: S1038: should use fmt.Printf instead of fmt.Print(fmt.Sprintf(...)) (gosimple)
	fmt.Print(fmt.Sprintf("%s: ", text))
	^
cmd/root.go:170:14: Error return value of `command.Run` is not checked (errcheck)
		command.Run("kubectl", commandArgs)
		           ^
command/command.go:29:13: S1030: should use stderr.String() instead of string(stderr.Bytes()) (gosimple)
		errStr := string(stderr.Bytes())
		          ^
pkg/interactive/contexts.go:89:13: Error return value of `command.Run` is not checked (errcheck)
	command.Run("kubectl", []string{"config", "set-context", cn.currentContext.Name})
	           ^
pkg/interactive/contexts_test.go:103:23: Error return value of `context.PrintClusters` is not checked (errcheck)
	context.PrintClusters(buf)
	                     ^
pkg/interactive/interactive.go:58:25: Error return value of `contexts.PrintClusters` is not checked (errcheck)
		contexts.PrintClusters(clusterBuf)
		                      ^
pkg/interactive/query.go:20:39: Error return value of `queryOptions.configFlags.ToRESTConfig` is not checked (errcheck)
	queryOptions.configFlags.ToRESTConfig()
	                                     ^
pkg/interactive/resources_test.go:25:17: Error return value of `PrintResources` is not checked (errcheck)
		PrintResources(infos, "", buf)
		              ^
pkg/interactive/resources_test.go:38:17: Error return value of `PrintResources` is not checked (errcheck)
		PrintResources(infos, "Name-", buf)

Pipe output to other tools

Hey,

sometimes it would be helpful to be able to pipe the output of the command of the command/selected resource.

I would like to do the following:kubectl

kubectl-ipick logs | jq . | less

This obviously doesn't work, because the direct output of ipick goes through the pipe and just waits for input.

Maybe something like:

kubectl-ipick logs -- --output-filter "jq . | less"

Add support for `darwin/arm64`

Could you add the darwin/arm64 binary to the release.

I forked and tested the goreleaser build and it looks fine but when I do a kubectl krew upgrade I get the error

Upgrading plugin: ipick
WARNING: failed to upgrade plugin "ipick", skipping (error: plugin "ipick" does not offer installation for this platform (darwin/arm64))

Thanks

FATA[0000] exec plugin: invalid apiVersion "client.authentication.k8s.io/v1"

Working with client and server versions 1.26 kubernetes
There is an executable that performs the authentication against our servers and is part of the ~/.kube/config as a command with arguments and makes use of certificates.

Plugin does not appear to support or understand this apiVersion. I have other krew plugins installed that do not have an issue.
kubectl ipick get pods
FATA[0000] exec plugin: invalid apiVersion "client.authentication.k8s.io/v1"

Support logs command

Hello! ipick has been a useful tool for me in interacting with my Kubernetes cluster.

However, I encountered an error while using the logs command. The error message said "container pod is not valid for pod xxx". I realized that the correct format for specifying pods in the logs command is '/xxx' instead of ' xxx'.

It would be great if we could improve to support the logs command. Thank you for considering this enhancement!

Should read $KUBECONFIG

While it provides an option for choosing the config file from the command line, I think it should support the same environment variable that kubectl does.

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.