diff --git a/charts/mailhog/README.md b/charts/mailhog/README.md index 30b0c53f..8449f876 100644 --- a/charts/mailhog/README.md +++ b/charts/mailhog/README.md @@ -69,6 +69,7 @@ Parameter | Description | Default `service.nodePort.smtp` | If `service.type` is `NodePort` and this is non-empty, sets the smtp node port of the service | `""` `securityContext` | Pod security context | `{ runAsUser: 1000, fsGroup: 1000, runAsNonRoot: true }` `ingress.enabled` | If `true`, an ingress is created | `false` +`ingress.ingressClassName` | If set the created Ingress resource will have this class name. kubernetes.io/ingress.class is [deprecated](https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation) | `nil` `ingress.annotations` | Annotations for the ingress | `{}` `ingress.labels` | Labels for the ingress | `{}` `ingress.hosts` | A list of ingress hosts | `{ host: mailhog.example.com, paths: [{ path: "/", pathType: Prefix }] }` diff --git a/charts/mailhog/templates/ingress.yaml b/charts/mailhog/templates/ingress.yaml index 4910e401..d4a2bf6e 100644 --- a/charts/mailhog/templates/ingress.yaml +++ b/charts/mailhog/templates/ingress.yaml @@ -15,6 +15,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: +{{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} +{{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/charts/mailhog/values.yaml b/charts/mailhog/values.yaml index 7e1db47a..c1eab1e6 100644 --- a/charts/mailhog/values.yaml +++ b/charts/mailhog/values.yaml @@ -49,6 +49,7 @@ containerSecurityContext: ingress: enabled: false + # ingressClassName: nginx annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true"