diff --git a/fuel_ccp/common/utils.py b/fuel_ccp/common/utils.py index da674b32..fcaf84db 100644 --- a/fuel_ccp/common/utils.py +++ b/fuel_ccp/common/utils.py @@ -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) diff --git a/fuel_ccp/templates.py b/fuel_ccp/templates.py index d53051cb..0fe4a672 100644 --- a/fuel_ccp/templates.py +++ b/fuel_ccp/templates.py @@ -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)