β«Upgrading to 3.x
Authentication changes
This major update comes with authentication changes thanks to KΓ©vin Dunglas' initial thoughts on the Kubeconfig environment variable authentication PR and how it should be changed.
For the fromUrl
method, you can still call the ->withToken()
and other authentication options as described in the authentication section.
PHP DocBlocks for KubernetesCluster
KubernetesCluster
The RenokiCo\PhpK8s\KubernetesCluster
now has proper annotations for all of the proxied methods, like getAllPods()
or getAllConfigmapsFromAllNamespaces()
.
Your IDE should now be able to properly hint you the callable methods while you type them.
Codebase Cleanup
After a while, the codebase became a bit unorganized, so there were some actions taken:
The resource-ready traits, like
CanScale
orHasName
were moved fromRenokiCo\PhpK8s\Traits
toRenokiCo\PhpK8s\Traits\Resource
Multiple classes, especially
K8s
andKubernetesClient
now implements the code in traits to avoid very long files with mixed functionalities.
Last updated