fix: ingress unittests
This commit is contained in:
parent
9c607f8a4b
commit
edc42f69a9
@ -991,9 +991,9 @@ To comply with the Gitea helm chart definition of the digest parameter, a "custo
|
|||||||
### Ingress
|
### Ingress
|
||||||
|
|
||||||
| Name | Description | Value |
|
| Name | Description | Value |
|
||||||
| -------------------------------- | ---------------------------------------------------- | ----------------- |
|
| -------------------------------- | ------------------------------- | ----------------- |
|
||||||
| `ingress.enabled` | Enable ingress | `false` |
|
| `ingress.enabled` | Enable ingress | `false` |
|
||||||
| `ingress.className` | DEPRECATED: Ingress class name. Use ingressClassName | `""` |
|
| `ingress.className` | DEPRECATED: Ingress class name. | `""` |
|
||||||
| `ingress.pathType` | Ingress Path Type | `Prefix` |
|
| `ingress.pathType` | Ingress Path Type | `Prefix` |
|
||||||
| `ingress.annotations` | Ingress annotations | `{}` |
|
| `ingress.annotations` | Ingress annotations | `{}` |
|
||||||
| `ingress.hosts[0].host` | Default Ingress host | `git.example.com` |
|
| `ingress.hosts[0].host` | Default Ingress host | `git.example.com` |
|
||||||
|
@ -13,9 +13,7 @@ metadata:
|
|||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.ingress.className }}
|
|
||||||
ingressClassName: {{ tpl .Values.ingress.className . }}
|
ingressClassName: {{ tpl .Values.ingress.className . }}
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if .Values.ingress.tls }}
|
||||||
tls:
|
tls:
|
||||||
{{- range .Values.ingress.tls }}
|
{{- range .Values.ingress.tls }}
|
||||||
|
@ -53,7 +53,7 @@ tests:
|
|||||||
- it: Ingress Class using TPL
|
- it: Ingress Class using TPL
|
||||||
set:
|
set:
|
||||||
global.ingress.className: "ingress-class"
|
global.ingress.className: "ingress-class"
|
||||||
ingress.ingressClassName: "{{ .Values.global.ingress.className }}"
|
ingress.className: "{{ .Values.global.ingress.className }}"
|
||||||
ingress.enabled: true
|
ingress.enabled: true
|
||||||
ingress.hosts[0].host: "some-host"
|
ingress.hosts[0].host: "some-host"
|
||||||
ingress.tls:
|
ingress.tls:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user