{{- if .Values.ingress.enabled -}} {{- $fullName := include "cms-plugins.fullname" . -}} # Plain Ingress object (no TLS) — TLS terminates at the Caddy reverse-proxy # at the cluster edge (matches the woodpecker / emdash-kotkanagrilli pattern). apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ $fullName }} namespace: {{ .Release.Namespace }} annotations: caddy.oleks.space/ingress: "true" labels: {{- include "cms-plugins.labels" . | nindent 4 }} spec: ingressClassName: {{ .Values.ingress.className | default "kube-system-traefik" }} rules: - host: {{ .Values.ingress.host | quote }} http: paths: - path: / pathType: Prefix backend: service: name: {{ $fullName }} port: number: {{ .Values.service.port }} {{- end }}