fikaworks / kubectl-plugins Goto Github PK
View Code? Open in Web Editor NEWA list of plugins that enhance the kubectl CLI
License: Apache License 2.0
A list of plugins that enhance the kubectl CLI
License: Apache License 2.0
This will allow people with multiple clusters to more easily use these plugins
As a developer
I want to be able to add label selectors to the prune to limit the scope of the command
In order to have more control over which secrets and configmaps get pruned.
We use Kustomize and the configmapgenerator. It leaves behind quite a few unused configmaps, so using the plugin should help us a lot to mitigate this. However, the tool currently doesn't allow us to limit the prune to the configmaps that we are actively managing. We use some operators and one of those creates a configmap which is used by the operator directly through API calls and is not used in any other configuration. With labels, we could limit the prune to just the configmaps that are generated with Kustomize.
Most people version ConfigMaps/Secrets by creating new ones instead of editing existing. This pattern is heavily employed by tools like kustomize, as it is a best practice.
When you roll back a deployment (i.e. activating a replicaset that was scaled down to 0 pods) you don't want to find out you've pruned configmap/secret it referenced...
I think this plugin should look at all ReplicaSet specs for such unused info. If there's a ReplicaSet spec not cleaned up by its Deployment object (due to max history), its secret/cm should not be deleted.
I get nervous when there's no dry-run option on this.
Hey, thanks for the great tool. I'm wondering how difficult it would be to support passing multiple cronjobs to exec, so we could use the plugin like:
kubectl exec-cronjob some-cj-{a,b,c}
Thanks again!
kubectl create job test-job --from=cronjob/a-cronjob
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.