Code Monkey home page Code Monkey logo

kubectl-plugins's People

Contributors

bitfisher avatar etiennetremel avatar

Stargazers

 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

Forkers

doker78

kubectl-plugins's Issues

Feature request: allow adding label selectors to prune

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.

Background

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.

prune-unused: don't only look at pod specs

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.

Feature request: Allow passing multiple cronjobs

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!

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.