metalbear-co / mirrord

Connect your local process and your cloud environment, and run local code in cloud conditions.
https://mirrord.dev
MIT License
3.84k stars 107 forks source link

feat: Support appsv1.ReplicaSet as a target #2940

Open waveywaves opened 5 days ago

waveywaves commented 5 days ago

I had a failure running the below command

 mirrord exec -t replicationcontroller/guestbook go run main.go 

was hoping to be able to set a pod created by the replication controller as a target to only learn that ~replicationcontroller and~ replicasets are not part of the supported workload types.

- Valid format:
          >> deployment/<deployment-name>[/container/container-name]
          >> deploy/<deployment-name>[/container/container-name]
          >> pod/<pod-name>[/container/container-name]
          >> job/<job-name>[/container/container-name]
          >> cronjob/<cronjob-name>[/container/container-name]
          >> statefulset/<statefulset-name>[/container/container-name]

This feature will help support more workload types for mirrored.

Edit: ReplicationController is legacy API now superseded with Deployment and ReplicaSet. Updated this issue only as a request to add support for replicasets.

linear[bot] commented 5 days ago

MBE-537 feat: Support v1.ReplicationController and appsv1.ReplicaSet as viable targets