omrikiei / ktunnel

A cli that exposes your local resources to kubernetes
GNU General Public License v3.0
974 stars 75 forks source link

Copy labels and selectors to prevent PATCH issue with immutable fields #103

Closed lionelnicolas closed 1 year ago

lionelnicolas commented 1 year ago

This fixes the use of --reuse when existing labels are different than the ones ktunnel wants to set.

On a side note, when I interrupt the ktunnel client, this doesn't restore deployment and service to its original definition, so I use helm/argocd to go back to the pre-ktunnel state.

Fixes: #79

omrikiei commented 1 year ago

Thank you for this great catch!