Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dup plugin #2831

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: add dup plugin #2831

wants to merge 1 commit into from

Conversation

vash
Copy link

@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

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
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
Author

vash commented Sep 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants