Skip to content

Commit 8a50e60

Browse files
authored
add ingressClassName configuration value to ingress object (#191)
1 parent 7782dd5 commit 8a50e60

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

charts/k8s-service/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ metadata:
3636
{{- end }}
3737
{{- end }}
3838
spec:
39+
{{- if .Values.ingress.ingressClassName }}
40+
ingressClassName: {{ .Values.ingress.ingressClassName }}
41+
{{- end }}
3942
{{- if .Values.ingress.tls }}
4043
{{- with .Values.ingress.tls }}
4144
tls:

charts/k8s-service/values.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,12 @@ serviceMonitor:
433433
# ingress is a map that can be used to configure an Ingress resource for this service. By default, turn off ingress.
434434
# NOTE: if you enable Ingress, then Service must also be enabled.
435435
# The expected keys are:
436-
# - enabled (bool) (required) : Whether or not the Ingress resource should be created. If false, no
436+
# - enabled (bool) (required) : Whether or not the Ingress resource should be created. If false, no
437437
# Ingress resource will be created.
438-
# - annotations (map) : Annotations that should be added to the Service resource. This is
438+
# - annotations (map) : Annotations that should be added to the Service resource. This is
439439
# injected directly in to the resource yaml.
440-
# - tls (list[map]) : Sets up TLS termination on the ingress rule. Each item is a separate TLS
440+
# - ingressClassName (string) : Name of the IngressClass cluster resource.
441+
# - tls (list[map]) : Sets up TLS termination on the ingress rule. Each item is a separate TLS
441442
# rule that maps to one or more hosts specified in this ingress rule. This
442443
# is injected directly in to the resource yaml.
443444
# - hosts (list[string]) : Sets up the host routes for the ingress resource. There will be a routing

0 commit comments

Comments
 (0)