similarweb / kubectl-ipick Goto Github PK
View Code? Open in Web Editor NEWInteractive plugin for kubectl
License: MIT License
Interactive plugin for kubectl
License: MIT License
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)
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"
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
Add version command
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"
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!
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.
kp describe pods --all-namespaces FATA[0000] no Auth Provider found for name "gcp"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.