From e4f0a945c791acba73019d46c7cd366a3c9a211f Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org> Date: Tue, 18 Mar 2025 16:37:15 +0100 Subject: [PATCH] deployment/graph: Add missing port update Refs. swh/infra/sysadm-environment#5608 --- swh/templates/graph/ingress.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swh/templates/graph/ingress.yaml b/swh/templates/graph/ingress.yaml index 773090863..c4cdbf3ec 100644 --- a/swh/templates/graph/ingress.yaml +++ b/swh/templates/graph/ingress.yaml @@ -4,6 +4,10 @@ {{- if and (hasKey $graphConfig "ingress") $graphConfig.ingress.enabled -}} {{- $type := $graphConfig.type -}} {{- $port := $graphConfig.port | default (ternary $.Values.graph.rpcPort $.Values.graph.grpcPort (eq $type "rpc")) -}} +{{- if not (hasKey $graphConfig "port") }} +{{- $graphConfig := set $graphConfig "port" $port -}} +{{- end -}} + {{- $annotations := $graphConfig.ingress.extraAnnotations | default dict }} {{- if (eq $type "grpc") }} {{- $annotations = mustMergeOverwrite $annotations -- GitLab