[K8s] Fixing service naming
* Due to the service name length limitation it needs to be cut to 24 characters. Closes-Bug: #1613651 Change-Id: Id2d68346034c0697f3fb41a090201e8736f8deec
This commit is contained in:
parent
8e5b5b64b8
commit
2fe1ddc8e3
|
@ -207,7 +207,6 @@ Methods:
|
|||
- $template: $resources.yaml('DeletePods.template').bind(dict(labels => $labels))
|
||||
- $.masterNode.instance.agent.call($template, $resources)
|
||||
|
||||
|
||||
createService:
|
||||
Arguments:
|
||||
- applicationName:
|
||||
|
@ -220,7 +219,7 @@ Methods:
|
|||
Body:
|
||||
- $.serviceEndpoints: $.getAttr(serviceEndpoints, list())
|
||||
- $currentEndpoints: $.serviceEndpoints.where($.applicationName = $applicationName and $.podId = $podId and $.scope = internal)
|
||||
- $serviceName: format('svc-{0}', randomName())
|
||||
- $serviceName: format('{0}-{1}', randomName(), $applicationName).substring(0, 24).toLower()
|
||||
- $endpointMap: {}
|
||||
- For: endpoint
|
||||
In: $currentEndpoints
|
||||
|
|
Loading…
Reference in New Issue