k9s icon indicating copy to clipboard operation
k9s copied to clipboard

feat: add dup plugin

Open vash opened this issue 1 year ago • 3 comments

Adding the kubectl dup plugin for duplication of all types of kubernetes resources (inc. custom).

Three modes were added :

  • Duplicate (on all resources)
  • Duplicate + Edit (on all resources) - Opens editor to edit the manifest and creates the object upon saving.
  • Debug - Duplicate complex resources (deploy,sts,cronjob,job) and pods,without probes with modified command to prevent the pod from exiting (requires tail binary in the container)

https://github.com/vash/dup

vash avatar Aug 18 '24 06:08 vash

seems somewhat similar to https://github.com/derailed/k9s/blob/master/plugins/duplik8s.yaml though this is more generic i think? might make sense to combine these 2 somehow

fawaf avatar Aug 25 '24 17:08 fawaf

Yes, I agree with you, I think it's up to the user to be able to choose which plugin suites their needs. I am certain the creator of the currently approved plugin has something in mind that separates their use-cases, as similar as they are.

Given the use-case I referenced (#2563), I would think that although they are similar, this is still going to provide value to the community due to its generic nature and the ability to provide a feature that was in the works and was supposed to be supported as an internal function within K9s itself.

vash avatar Aug 25 '24 19:08 vash

@derailed Would appreciate if you or anyone else could have a look at it

vash avatar Sep 18 '24 07:09 vash

This PR is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 20 '25 02:05 github-actions[bot]