def V1Deployment(
    name: Optional[str] = None,
    namespace: Optional[str] = None,
    template_spec_labels: Optional[Labels] = None,
    match_labels: Optional[Labels] = None) -> client.V1Deployment:
  """Make Kubernetes API response deployment, see V1Deployment.

  https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Deployment.md
  """
  return client.V1Deployment(
      metadata=V1ObjectMeta(name=name, namespace=namespace),
      spec=client.V1DeploymentSpec(
          selector=client.V1LabelSelector(match_labels=match_labels),
          template=V1PodTemplateSpec(template_spec_labels or {})))
Make Kubernetes API response deployment, see V1Deployment.

https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Deployment.md
tests/providers/kubernetes/k8s_mocks.py