Skip to content
Snippets Groups Projects
Unverified Commit e4f0a945 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

deployment/graph: Add missing port update

Refs. swh/infra/sysadm-environment#5608
parent c6b27fb1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment