From 0a9cbaad46e73f270a29161770cae97c7cc569cd Mon Sep 17 00:00:00 2001 From: Vaibhav Pathak Date: Tue, 6 Jan 2026 13:02:20 +0530 Subject: [PATCH] Add ingress template to Hades Helm chart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable ingress resource creation via Helm values instead of workflow-created manifests. Supports configurable host, className, annotations, and TLS settings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- hades/templates/ingress.yaml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 hades/templates/ingress.yaml diff --git a/hades/templates/ingress.yaml b/hades/templates/ingress.yaml new file mode 100644 index 0000000..39dbf6f --- /dev/null +++ b/hades/templates/ingress.yaml @@ -0,0 +1,43 @@ +{{- if .Values.ingress.enabled -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ include "hades.fullname" . }}-ingress + labels: + {{- include "hades.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- with .Values.ingress.className }} + ingressClassName: {{ . }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- with .pathType }} + pathType: {{ . }} + {{- end }} + backend: + service: + name: {{ include "hades.fullname" $ }} + port: + number: {{ $.Values.service.port }} + {{- end }} + {{- end }} +{{- end }}