From 2c0cdd93cd7a9004ec11a195ae718ed312e8119e Mon Sep 17 00:00:00 2001 From: Michal Lehotsky Date: Mon, 25 May 2026 19:42:21 -0700 Subject: [PATCH] feat(helm): add missing ingress template to initiatives-service chart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The chart had a full ingress stanza in values.yaml (hosts, TLS, annotations, className) and ArgoCD values set ingress.enabled: true with Traefik config, but the chart contained no ingress.yaml template — so the configuration was silently ignored and no Ingress resource was ever created in the cluster. Adds the template following the standard pattern used by other LFX service charts. The template renders only when ingress.enabled is true, inherits annotations verbatim (so the ArgoCD-side rate-limit middleware annotation will be picked up once that CRD is added), and uses the chart's service port from values. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Michal Lehotsky --- .../templates/ingress.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 backend/charts/lfx-v2-initiatives-service/templates/ingress.yaml diff --git a/backend/charts/lfx-v2-initiatives-service/templates/ingress.yaml b/backend/charts/lfx-v2-initiatives-service/templates/ingress.yaml new file mode 100644 index 00000000..fa46964e --- /dev/null +++ b/backend/charts/lfx-v2-initiatives-service/templates/ingress.yaml @@ -0,0 +1,40 @@ +{{- /* +Copyright The Linux Foundation and each contributor to LFX. +SPDX-License-Identifier: MIT +*/ -}} +{{- if .Values.ingress.enabled -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ include "lfx-v2-initiatives-service.fullname" . }} + namespace: {{ .Release.Namespace }} + labels: + {{- include "lfx-v2-initiatives-service.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- with .Values.ingress.className }} + ingressClassName: {{ . }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- toYaml .Values.ingress.tls | nindent 4 }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + pathType: {{ .pathType }} + backend: + service: + name: {{ include "lfx-v2-initiatives-service.fullname" $ }} + port: + number: {{ $.Values.service.port }} + {{- end }} + {{- end }} +{{- end }}