Skip to content

feat: add dup plugin#2831

Closed
vash wants to merge 2 commits intoderailed:masterfrom
vash:master
Closed

feat: add dup plugin#2831
vash wants to merge 2 commits intoderailed:masterfrom
vash:master

Conversation

@vash
Copy link
Copy Markdown
Contributor

@vash vash commented Aug 18, 2024

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

@fawaf
Copy link
Copy Markdown

fawaf commented Aug 25, 2024

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

@vash
Copy link
Copy Markdown
Contributor Author

vash commented Aug 25, 2024

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
Copy link
Copy Markdown
Contributor Author

vash commented Sep 18, 2024

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

Copy link
Copy Markdown
Owner

@derailed derailed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vash Thank you for this update!.
Looks like we have conflicts. Can you take a look?

@github-actions
Copy link
Copy Markdown

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

@github-actions github-actions bot added the stale label May 20, 2025
@github-actions github-actions bot closed this May 28, 2025
@vash vash mentioned this pull request Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants