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: