From edc42f69a9a99177f6f99ce858ab70047062858e Mon Sep 17 00:00:00 2001 From: pat-s Date: Fri, 16 May 2025 15:40:13 +0200 Subject: [PATCH] fix: ingress unittests --- README.md | 18 +++++++++--------- templates/gitea/ingress.yaml | 2 -- unittests/helm/ingress/basic.yaml | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 80b9c29..1c62299 100644 --- a/README.md +++ b/README.md @@ -990,15 +990,15 @@ To comply with the Gitea helm chart definition of the digest parameter, a "custo ### Ingress -| Name | Description | Value | -| -------------------------------- | ---------------------------------------------------- | ----------------- | -| `ingress.enabled` | Enable ingress | `false` | -| `ingress.className` | DEPRECATED: Ingress class name. Use ingressClassName | `""` | -| `ingress.pathType` | Ingress Path Type | `Prefix` | -| `ingress.annotations` | Ingress annotations | `{}` | -| `ingress.hosts[0].host` | Default Ingress host | `git.example.com` | -| `ingress.hosts[0].paths[0].path` | Default Ingress path | `/` | -| `ingress.tls` | Ingress tls settings | `[]` | +| Name | Description | Value | +| -------------------------------- | ------------------------------- | ----------------- | +| `ingress.enabled` | Enable ingress | `false` | +| `ingress.className` | DEPRECATED: Ingress class name. | `""` | +| `ingress.pathType` | Ingress Path Type | `Prefix` | +| `ingress.annotations` | Ingress annotations | `{}` | +| `ingress.hosts[0].host` | Default Ingress host | `git.example.com` | +| `ingress.hosts[0].paths[0].path` | Default Ingress path | `/` | +| `ingress.tls` | Ingress tls settings | `[]` | ### deployment diff --git a/templates/gitea/ingress.yaml b/templates/gitea/ingress.yaml index 55e6551..9312ffb 100644 --- a/templates/gitea/ingress.yaml +++ b/templates/gitea/ingress.yaml @@ -13,9 +13,7 @@ metadata: {{ $key }}: {{ $value | quote }} {{- end }} spec: -{{- if .Values.ingress.className }} ingressClassName: {{ tpl .Values.ingress.className . }} -{{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/unittests/helm/ingress/basic.yaml b/unittests/helm/ingress/basic.yaml index 8cf3d87..733e557 100644 --- a/unittests/helm/ingress/basic.yaml +++ b/unittests/helm/ingress/basic.yaml @@ -53,7 +53,7 @@ tests: - it: Ingress Class using TPL set: global.ingress.className: "ingress-class" - ingress.ingressClassName: "{{ .Values.global.ingress.className }}" + ingress.className: "{{ .Values.global.ingress.className }}" ingress.enabled: true ingress.hosts[0].host: "some-host" ingress.tls: