What's New
This release introduces an External Kubernetes provider, enabling pytest users to run their tests against any Kubernetes cluster not managed by pytest-kubernetes.
You can now pass the --k8s-kubeconfig argument to pytest.
There is a new fixture called k8s_manager which is almost synonymous with the util function select_provider_manager, but sensitive to all pytest arguments. It's now recommended to use k8s_manager instead of select_provider_manager.
Users can now set up their local Kubernetes clusters using provider configs (for example, with k3d). To pass a cluster configuration, use the pytest argument --k8s-provider-config, together with --k8s-provider. That makes it easy to run tests against multiple cluster configs. Please keep --k8s-version to run tests against various Kubernetes API versions.
We welcome feedback on any bugs or potential improvements.
What's Changed
- chore(deps): update dependency coverage to v7.6.11 by @renovate[bot] in #50
- chore(deps): update dependency ruff to v0.9.6 by @renovate[bot] in #46
- chore(deps): update dependency mypy to v1.15.0 by @renovate[bot] in #49
- chore(deps): update dependency coverage to v7.6.12 by @renovate[bot] in #51
- fix(deps): update dependency pytest to v8.3.5 by @renovate[bot] in #53
- chore(deps): update dependency ruff to ^0.11.0 by @renovate[bot] in #55
- chore(deps): update dependency coverage to v7.8.0 by @renovate[bot] in #56
- chore(deps): update dependency coverage to v7.8.1 by @renovate[bot] in #58
- chore(deps): update dependency coverage to v7.8.2 by @renovate[bot] in #59
- chore(deps): update sigstore/gh-action-sigstore-python action to v3.0.1 by @renovate[bot] in #64
- feat: custom cluster configs ✨ by @liquidiert in #28
- chore(deps): update dependency pyyaml to v6.0.3 by @renovate[bot] in #69
- feat(#3): refactor fixture and cluster factory, add extern cluster support and override options by @Schille in #68
Full Changelog: 0.6.0...0.7.2