Skip to content

Commit

Permalink
Merge pull request #192 from rubentsirunyan/master
Browse files Browse the repository at this point in the history
Adding ingressClassName field in ingress
  • Loading branch information
sbrunner authored May 27, 2024
2 parents 8f3462d + d6077ad commit f6b3b5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
name: {{ include "common.fullname" ( dict "root" $ "service" $.Values.ingress "serviceName" $hostGroupName ) }}
{{- include "common.metadata" ( dict "root" $ "service" $.Values.ingress "serviceName" $hostGroupName ) | nindent 2 }}
spec:
{{- with $.Values.ingress.ingressClassName }}
ingressClassName: {{ . }}
{{- end }}
# Add tls only if ingress.tls.enabled is set to true and the other fields are complete.
{{- if and ( hasKey $hostGroupDefinition "tls" ) ( eq $hostGroupDefinition.tls.enabled true ) }}
tls:
Expand All @@ -17,8 +20,6 @@ spec:
{{- end }}
{{- if $hostGroupDefinition.tls.secretName }}
secretName: {{ $hostGroupDefinition.tls.secretName }}
{{- else }}
secretName: {{ $fullName }}-{{ $hostGroupName }}
{{- end }}
{{- end }}
rules:
Expand Down
1 change: 1 addition & 0 deletions values.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- **`prefixTrunc`**: Refer to _[#/definitions/prefixTrunc](#definitions/prefixTrunc)_.
- **`labels`**: Refer to _[#/definitions/labels](#definitions/labels)_.
- **`annotations`**: Refer to _[#/definitions/annotations](#definitions/annotations)_.
- **`ingressClassName`** _(string)_: Ingress class name. Will be omitted if not specified.
- **`hostGroups`** _(object)_: Can contain additional properties.
- **Additional properties** _(object)_: Cannot contain additional properties.
- **`hosts`** _(array)_
Expand Down
4 changes: 4 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@
"annotations": {
"$ref": "#/definitions/annotations"
},
"ingressClassName": {
"type": "string",
"description": "Ingress class name. Will be omitted if not specified."
},
"hostGroups": {
"type": "object",
"additionalProperties": {
Expand Down

0 comments on commit f6b3b5d

Please sign in to comment.