vapor-ware / kubetest

Kubernetes integration testing in Python via pytest
https://kubetest.readthedocs.io/en/latest/
GNU General Public License v3.0
207 stars 56 forks source link

Add support for `kubecontext` fixture. #200

Closed blakewatters closed 3 years ago

blakewatters commented 3 years ago

Hi there -

I have added support for a kubecontext fixture that allows the context to be specified via a fixture to align with the support for the kubeconfig fixture.

The default implementation returns the value from the session config.

I need this because I am in a weird world where I am using kubetest against an application that is fully async and I need to align the configuration between the sync kubernetes library utilized by kubetest with what is used by the kubernetes_asyncio fork utilized by the main application code.

Docs are updated and tests are clean.

edaniszewski commented 3 years ago

This is available in the 0.9.3 release -- thanks again for the contribution!