Closed max0ne closed 3 years ago
This proposes to pass in api version as postfix of the api_group parameter for kube.get and kube.delete. It's used for identifying objects when more than 1 version of an API resource is registered to kube_fake at runtime.
api_group
kube.get
kube.delete
kube_fake
Example usage:
kube.get(customresourcedefinition="crd-v1", api_group="apiextensions.k8s.io/v1", wait="0s")
This does not break backward compatibility, api_group can still be used without version.
Added a tests:
newResource
api_group_test.ipd
This proposes to pass in api version as postfix of the
api_group
parameter forkube.get
andkube.delete
. It's used for identifying objects when more than 1 version of an API resource is registered tokube_fake
at runtime.Example usage:
This does not break backward compatibility,
api_group
can still be used without version.Added a tests:
newResource
function, for resource version resolutionapi_group_test.ipd