Skip to content
Permalink
Browse files

Add prune-unused plugin (#162)

* Add kubectl-prune plugin

* Split prune command to prune-configmaps and prune-secrets

* Fix misspeling

* Unify configmaps and secrets into a single prune-unused plugin
  • Loading branch information...
etiennetremel authored and k8s-ci-robot committed Jul 11, 2019
1 parent 4886fa3 commit 0b99994183044fd2c9f4b9876eece8f6d1b69773
Showing with 32 additions and 0 deletions.
  1. +32 −0 plugins/prune-unused.yaml
@@ -0,0 +1,32 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: prune-unused
spec:
version: v0.3.0
platforms:
- selector:
matchExpressions:
- {key: os, operator: In, values: [darwin, linux]}
uri: https://github.com/thecloudnatives/kubectl-plugins/archive/v0.3.0.zip
sha256: d002eac93dd6396eb84996cae88d6569d2451212dca4a098d26e1a123754cbd1
files:
- from: kubectl-plugins-*/prune-unused/*
to: "."
bin: kubectl-prune_unused.sh
shortDescription: Prune unused resources
description: |
Prune unused configmaps/secret resources from a given namespace. It
checks against all resources from mounted volumes, env and envFrom and
imagePullSecrets.
caveats: |
Usage:
kubectl prune-unused <configmaps|secrets> [options]
Options:
-n, --namespace='': If present, the namespace scope for this CLI request
-h, --help='': Display this help
Read the documentation at:
https://github.com/thecloudnatives/kubectl-plugins
homepage: https://github.com/thecloudnatives/kubectl-plugins

0 comments on commit 0b99994

Please sign in to comment.
You can’t perform that action at this time.