Skip to content

Commit

Permalink
add ingressClassName configuration value to ingress object (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryehowell authored Aug 19, 2024
1 parent 7782dd5 commit 8a50e60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions charts/k8s-service/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 4 additions & 3 deletions charts/k8s-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a50e60

Please sign in to comment.