Add support for ingressClassName (#8644)

This commit is contained in:
Mark Wooff
2022-01-13 06:07:44 -05:00
committed by GitHub
parent 6b02085be4
commit 3cab63eb2f
4 changed files with 10 additions and 2 deletions

View File

@@ -25,4 +25,4 @@ name: moodle
sources:
- https://github.com/bitnami/bitnami-docker-moodle
- https://www.moodle.org/
version: 11.3.1
version: 11.4.0

View File

@@ -161,6 +161,7 @@ The command removes all the Kubernetes components associated with the chart and
| `service.nodePorts.https` | Kubernetes HTTPS node port | `""` |
| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` |
| `ingress.enabled` | Set to true to enable ingress record generation | `false` |
| `ingress.ingressClassName` | Name of the ingress class (Kubernetes 1.18+) | `""` |
| `ingress.pathType` | Ingress Path type | `ImplementationSpecific` |
| `ingress.apiVersion` | Override API Version (automatically detected if not set) | `""` |
| `ingress.hostname` | When the ingress is enabled, a host pointing to this will be created | `minio.local` |

View File

@@ -18,6 +18,9 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end }}
rules:
{{- if .Values.ingress.hostname }}
- host: {{ .Values.ingress.hostname }}

View File

@@ -386,7 +386,11 @@ ingress:
## DEPRECATED: Use ingress.annotations instead of ingress.certManager
## certManager: false
##
## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
##
ingressClassName: ""
## @param ingress.pathType Ingress Path type
##
pathType: ImplementationSpecific