tacker.vnfm.infra_drivers.kubernetes.k8s.translate_outputs module¶
-
class
tacker.vnfm.infra_drivers.kubernetes.k8s.translate_outputs.
Transformer
(core_v1_api_client, app_v1_api_client, scaling_api_client, k8s_client_dict)¶ Bases:
object
Transform TOSCA template to Kubernetes resources
-
config_labels
(deployment_name=None, scaling_name=None)¶
-
deploy
(kubernetes_objects)¶ Deploy Kubernetes objects on Kubernetes VIM and return
a list name of services
-
deploy_k8s
(kubernetes_objects)¶ Deploy kubernetes
Deploy Kubernetes objects on Kubernetes VIM and return a list name of services
-
get_k8s_objs_from_manifest
(mf_content, namespace=None)¶
-
get_k8s_objs_from_yaml
(artifact_files, vnf_package_path)¶
-
get_object_meta
(content)¶
-
init_configmap
(container_props, kube_obj_name)¶
-
init_containers
(container_props, limit_resource, name)¶
-
init_deployment
(tosca_kube_obj, kube_obj_name)¶ Instantiate the deployment object
-
init_envs
(container_props, name)¶
-
init_hpa
(tosca_kube_obj, kube_obj_name)¶
-
init_resource_requirements
(container)¶
-
init_service
(tosca_kube_obj, kube_obj_name)¶
-
pre_process_config
(config)¶
-
pre_process_name
(name)¶
-
transform
(tosca_kube_objects)¶ transform function translates from tosca_kube_object to
kubernetes_object (ConfigMap, Deployment, Service, HPA)
-