feat(helm): add support for spec.ingressClassName to Ingress template (#5202)
This commit is contained in:
parent
0fcc083940
commit
a06201aaf5
@ -108,6 +108,7 @@ The following table lists the configurable parameters of the Wiki.js chart and t
|
|||||||
| `volumeMounts` | Volume mounts for Wiki.js container | `[]` |
|
| `volumeMounts` | Volume mounts for Wiki.js container | `[]` |
|
||||||
| `volumes` | Volumes for Wiki.js Pod | `[]` |
|
| `volumes` | Volumes for Wiki.js Pod | `[]` |
|
||||||
| `ingress.enabled` | Enable ingress controller resource | `false` |
|
| `ingress.enabled` | Enable ingress controller resource | `false` |
|
||||||
|
| `ingress.className` | Ingress class name | `""` |
|
||||||
| `ingress.annotations` | Ingress annotations | `{}` |
|
| `ingress.annotations` | Ingress annotations | `{}` |
|
||||||
| `ingress.hosts` | List of ingress rules | `[{"host": "wiki.local", "paths": ["/"]}]` |
|
| `ingress.hosts` | List of ingress rules | `[{"host": "wiki.local", "paths": ["/"]}]` |
|
||||||
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
||||||
|
@ -23,6 +23,9 @@ metadata:
|
|||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if .Values.ingress.tls }}
|
||||||
tls:
|
tls:
|
||||||
{{- range .Values.ingress.tls }}
|
{{- range .Values.ingress.tls }}
|
||||||
|
@ -54,6 +54,7 @@ service:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
|
Loading…
Reference in New Issue
Block a user