In Kubernetes version 1.16, deployment in ExtensionsV1beta1Deployment
is deprecated [1], so it is unable to create cnf.
In this patch, I first create method to get AppsV1Api [2],
then I include app_v1_api_client in Kubernetes translate_template to
create deployment.
Reviewed: https:/ /review. opendev. org/728376 /git.openstack. org/cgit/ openstack/ tacker/ commit/ ?id=621a13afba8 0c85b3855e53633 ebb7971d578711
Committed: https:/
Submitter: Zuul
Branch: master
commit 621a13afba80c85 b3855e53633ebb7 971d578711
Author: Quang Hiep <email address hidden>
Date: Fri May 15 07:09:18 2020 +0000
Use API apps/v1 to create deployment
In Kubernetes version 1.16, deployment in ExtensionsV1bet a1Deployment
is deprecated [1], so it is unable to create cnf.
In this patch, I first create method to get AppsV1Api [2],
then I include app_v1_api_client in Kubernetes translate_template to
create deployment.
[1]: https:/ /kubernetes. io/blog/ 2019/07/ 18/api- deprecations- in-1-16/ /github. com/kubernetes- client/ python/ blob/master/ kubernetes/ docs/AppsV1Api. md
[2]: https:/
Related-Bug: #1878753 eae84c2105a1dac 4369ab3b2fe
Change-Id: I0004f5045a6f4a