diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-09-09 13:14:27 +0200 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-09-11 19:14:24 +0000 |
commit | 28d372ab210e4bf053b1dd49dfed443096959000 (patch) | |
tree | 8d14654093a02d07c6b850e5e07aacfd4de2ec82 /kubernetes/dcaemod/components/dcaemod-healthcheck | |
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
Diffstat (limited to 'kubernetes/dcaemod/components/dcaemod-healthcheck')
-rw-r--r-- | kubernetes/dcaemod/components/dcaemod-healthcheck/templates/deployment.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/dcaemod/components/dcaemod-healthcheck/templates/deployment.yaml b/kubernetes/dcaemod/components/dcaemod-healthcheck/templates/deployment.yaml index 64268abb33..28d974c815 100644 --- a/kubernetes/dcaemod/components/dcaemod-healthcheck/templates/deployment.yaml +++ b/kubernetes/dcaemod/components/dcaemod-healthcheck/templates/deployment.yaml @@ -36,13 +36,13 @@ spec: {{- if eq .Values.liveness.enabled true }} livenessProbe: tcpSocket: - port: {{ ( index .Values.service.ports 0).port }} + port: {{ include "common.getPort" (dict "global" . "name" "http") }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} {{ end -}} readinessProbe: tcpSocket: - port: {{ ( index .Values.service.ports 0).port }} + port: {{ include "common.getPort" (dict "global" . "name" "http") }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} volumeMounts: |