From 8a50e60380ddfe294e36a824ece771012ea483c2 Mon Sep 17 00:00:00 2001 From: Ryan Howell <86266251+ryehowell@users.noreply.github.com> Date: Mon, 19 Aug 2024 05:45:41 -0400 Subject: [PATCH] add ingressClassName configuration value to ingress object (#191) --- charts/k8s-service/templates/ingress.yaml | 3 +++ charts/k8s-service/values.yaml | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/charts/k8s-service/templates/ingress.yaml b/charts/k8s-service/templates/ingress.yaml index 10f935f7..1159b79c 100644 --- a/charts/k8s-service/templates/ingress.yaml +++ b/charts/k8s-service/templates/ingress.yaml @@ -36,6 +36,9 @@ metadata: {{- end }} {{- end }} spec: + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} {{- if .Values.ingress.tls }} {{- with .Values.ingress.tls }} tls: diff --git a/charts/k8s-service/values.yaml b/charts/k8s-service/values.yaml index 6412913a..fe3185b0 100644 --- a/charts/k8s-service/values.yaml +++ b/charts/k8s-service/values.yaml @@ -433,11 +433,12 @@ serviceMonitor: # ingress is a map that can be used to configure an Ingress resource for this service. By default, turn off ingress. # NOTE: if you enable Ingress, then Service must also be enabled. # The expected keys are: -# - enabled (bool) (required) : Whether or not the Ingress resource should be created. If false, no +# - enabled (bool) (required) : Whether or not the Ingress resource should be created. If false, no # Ingress resource will be created. -# - annotations (map) : Annotations that should be added to the Service resource. This is +# - annotations (map) : Annotations that should be added to the Service resource. This is # injected directly in to the resource yaml. -# - tls (list[map]) : Sets up TLS termination on the ingress rule. Each item is a separate TLS +# - ingressClassName (string) : Name of the IngressClass cluster resource. +# - tls (list[map]) : Sets up TLS termination on the ingress rule. Each item is a separate TLS # rule that maps to one or more hosts specified in this ingress rule. This # is injected directly in to the resource yaml. # - hosts (list[string]) : Sets up the host routes for the ingress resource. There will be a routing