pytogo / portforward

Kubernetes Port-Forward Go-Edition For Python

Home Page:https://portforward.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing contextName to the forward function.

EraYaN opened this issue · comments

  • portforward version: 0.3.0
  • Python version: 3.9
  • Operating System: Windows x64

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.

@EraYaN thank you for message.

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

Everything is fine now. The release 0.3.1.

Checkout the docs for the new kwargs.