commit | 28d372ab210e4bf053b1dd49dfed443096959000 | [log] [tgz] |
---|---|---|
author | Krzysztof Opasiak <k.opasiak@samsung.com> | Wed Sep 09 13:14:27 2020 +0200 |
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | Fri Sep 11 19:14:24 2020 +0000 |
tree | 8d14654093a02d07c6b850e5e07aacfd4de2ec82 | |
parent | 1a0ff537f9a01edbe92acfdaa7a670c78a07118c [diff] |
[Tree-Wide] Reference ports by name not index Referencing anything based on its position on alist can be really fragile and har to debug. As we already have a convenience template that allows us to access the port based on its name let's make sure that everyone is using it. Issue-ID: OOM-1971 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: Id25cb9d9e48f39f46786ea9e9a432b0c51130c50
diff --git a/kubernetes/so/charts/so-ve-vnfm-adapter/resources/config/overrides/override.yaml b/kubernetes/so/charts/so-ve-vnfm-adapter/resources/config/overrides/override.yaml index 88d805d..89b6ada 100755 --- a/kubernetes/so/charts/so-ve-vnfm-adapter/resources/config/overrides/override.yaml +++ b/kubernetes/so/charts/so-ve-vnfm-adapter/resources/config/overrides/override.yaml
@@ -13,7 +13,7 @@ # limitations under the License. server: - port: {{ (index .Values.service.ports 0).port }} + port: {{ include "common.getPort" (dict "global" . "name" "http") }} vevnfmadapter: endpoint: https://msb-iag:30283/api/{{ include "common.servicename" . }}/v1
diff --git a/kubernetes/so/charts/so-ve-vnfm-adapter/values.yaml b/kubernetes/so/charts/so-ve-vnfm-adapter/values.yaml index d244f7a..0620a0b 100755 --- a/kubernetes/so/charts/so-ve-vnfm-adapter/values.yaml +++ b/kubernetes/so/charts/so-ve-vnfm-adapter/values.yaml
@@ -50,7 +50,7 @@ "version": "v1", "url": "/", "protocol": "REST", - "port": "{{ (index .Values.service.ports 0).port }}", + "port": "{{ include "common.getPort" (dict "global" . "name" "http") }}", "visualRange": "1" } ]{{ end }}