pytogo / portforward

Kubernetes Port-Forward Go-Edition For Python
https://portforward.readthedocs.io
MIT License
17 stars 6 forks source link

Passing contextName to the forward function. #9

Closed EraYaN closed 1 year ago

EraYaN commented 1 year ago

Description

I have a .kube/config with a couple of different contexts (of which a random one is current).

It would be very helpful if we could pass the context name to use for the kube config loader and as such start two port forwards to two different clusters that are in different contexts. Right now we run kubectl to set the current config but that is not quite as sturdy as I would like.

corka149 commented 1 year ago

@EraYaN thank you for message.

I added the feature but there is some issue yet with parsing the args.

corka149 commented 1 year ago

Everything is fine now. The release 0.3.1.

Checkout the docs for the new kwargs.