Removing k8s_name function as it's not needed

Change-Id: I0e03c471315444e8b53202189047fbbfd2fd4c6f
This commit is contained in:
Andrey Pavlov 2016-10-23 21:14:50 +03:00
parent f6ae9c6884
commit 2269d869cd
2 changed files with 1 additions and 6 deletions

View File

@ -16,10 +16,6 @@ CONF = config.CONF
LOG = logging.getLogger(__name__)
def k8s_name(*args):
return "-".join(tuple(args)).replace("_", "-")
def get_resource_path(path):
return pkg_resources.resource_filename(fuel_ccp.version_info.package, path)

View File

@ -1,6 +1,5 @@
import json
from fuel_ccp.common import utils
from fuel_ccp import config
from fuel_ccp.config import images
@ -361,7 +360,7 @@ def serialize_service(name, ports):
spec_entry = {"protocol": "TCP",
"port": port["port"],
"targetPort": port["port"],
"name": utils.k8s_name(port["name"])}
"name": port["name"]}
if port.get("node-port"):
spec_entry.update({"nodePort": port["node-port"]})
ports_spec.append(spec_entry)