tacker.vnfm.infra_drivers.kubernetes.k8s.translate_outputs module

tacker.vnfm.infra_drivers.kubernetes.k8s.translate_outputs module

class tacker.vnfm.infra_drivers.kubernetes.k8s.translate_outputs.Transformer(core_v1_api_client, extension_api_client, scaling_api_client)

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

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)

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.