Skip to content

Commit

Permalink
Merge pull request #39 from stakater-charts/add-route-host
Browse files Browse the repository at this point in the history
Add option to specify route host
  • Loading branch information
hamza3202 authored Jun 17, 2020
2 parents 1355b1c + f2fad25 commit 90ad928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ To uninstall the chart:
| ingress.annotations | Annotations for ingress | `{}` |
| ingress.tls | TLS block for ingress | `[]` |
| route.enabled | Enable Route incase of Openshift | `false` |
| route.host | Host of route | nil |
| route.annotations | Annotations for route | `{}` |
| route.additionalLables | Labels for route | `{}` |
| route.port.targetPort | Port of the service that serves pods | `http` |
Expand Down
3 changes: 3 additions & 0 deletions application/templates/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
{{ toYaml .Values.route.annotations | indent 4 }}
{{- end }}
spec:
{{- if .Values.route.host }}
host: {{ .Values.route.host }}
{{- end }}
port:
{{ toYaml .Values.route.port | indent 4 }}
to:
Expand Down

0 comments on commit 90ad928

Please sign in to comment.