- Add command
list
for showing duplicated resources. Example:
kubectl duplicate list -n my-namespace
- Add command
cleanup
for deleting duplicated resources. Example:
kubectl duplicate cleanup -n my-namespace
- Switch to Dynamic Client, opening the door for duplicating any resource type.
- In interactive selection, don't list resources that have already been duplicated.
- Properly handle Pods that mount persistent storage.
Pods that mount a PersistentVolume with exclusive access modes (
ReadWriteOnce
,ReadWriteOncePod
) are cloned on the same node as the original. This ensures that the duplicate can also mount the same volume. - Add support for duplicating Deployments and StatefulSets.
- Interactively select Pods, Deployments, or StatefulSets to duplicate when no name is provided as an argument.
- Refactoring to make code testable.
- Update demo GIFs in the README.
Initial release.