Skip to content

Commit

Permalink
Adds TLS Configuration for Ingress
Browse files Browse the repository at this point in the history
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
  • Loading branch information
ChrisJBurns committed Dec 7, 2022
1 parent 55e12fd commit 7c727d0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ The command removes all the Kubernetes components associated with the chart and
| `ingress.className` | Name of the IngressClass cluster resource (e.g nginx) | `""` |
| `ingress.annotations` | Additional annotations for the Ingress resource | `{}` |
| `ingress.host` | Hostname of the backstage application (e.g backstage.<IP>.nip.io) | `""` |
| `ingress.tls.enabled` | Enable TLS configuration for the host defined at `ingress.host` | `false` |
| `ingress.tls.secretName` | The name to which the TLS Secret will be called | `""` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.ports.backend` | Port for client connections | `7007` |
| `service.nodePorts.backend` | Node port for client connections | `""` |
Expand Down
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.2
version: 0.6.0

dependencies:
- name: common
Expand Down
6 changes: 6 additions & 0 deletions charts/backstage/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- end -}}
rules:
- host: {{ .Values.ingress.host }}
http:
Expand Down
9 changes: 9 additions & 0 deletions charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ ingress:
## @param host Hostname to be used to expose the route to access the backstage application (e.g: backstage.IP.nip.io)
host: ""

## @section Ingress TLS parameters
tls:

## @param ingress.tls.enabled Enable TLS configuration for the host defined at `ingress.host` parameter
enabled: false

## @param ingress.tls.secretName The name to which the TLS Secret will be called
secretName: ""

## @section Backstage parameters

## Backstage image version
Expand Down

0 comments on commit 7c727d0

Please sign in to comment.