Skip to content

Commit

Permalink
Merge pull request #47 from boomerang-io/feat-276-app-root
Browse files Browse the repository at this point in the history
Added enableAppRoot to values and appropriate implementation in the a…
  • Loading branch information
morarucostel authored Oct 26, 2021
2 parents ed02c09 + 631005a commit 9175f87
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bmrg-flow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: bmrg-flow
description: Boomerang Flow
type: application
version: 4.10.17
appVersion: 3.4.0
version: 4.10.18
appVersion: 3.4.1
home: https://useboomerang.io
dependencies:
- name: bmrg-common
Expand Down
1 change: 1 addition & 0 deletions bmrg-flow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ The following table lists the configurable parameters of the chart and their def
| `ingress.tlsSecretName` | If there is an associated TLS secret | `bmrg-tls-cloud` |
| `ingress.annotationsPrefix` | The prefix for the annotations inside the ingress definition. Typically for IKS Community Ingress you need to set it to `nginx.ingress.kubernetes.io` | `ingress.kubernetes.io` |
| `ingress.class` | The class of the ingress, it is used to mark the ingress resources to be picked-up by a specific controller. For IKS Community Ingress set it to `public-iks-k8s-nginx` | `nginx` |
| `ingress.enableAppRoot` | If enabled it sets the `app-root` ingress annotation to the ingress.root provided value, in order to redirect to the flow app | `false` |

### Auth Configuration

Expand Down
3 changes: 3 additions & 0 deletions bmrg-flow/templates/ingress-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ metadata:
{{- include "bmrg.ingress.config.auth_proxy_user_email" $ | nindent 6 }}
{{- end }}
{{ $.Values.global.ingress.annotationsPrefix}}/ssl-redirect: "true"
{{- if eq $.Values.global.ingress.enableAppRoot true }}
{{ $.Values.global.ingress.annotationsPrefix}}/app-root: "{{ default "" $.Values.global.ingress.root }}/{{ $tier }}/{{ $k }}"
{{- end }}
{{ $.Values.global.ingress.annotationsPrefix}}/client-max-body-size: 1m
kubernetes.io/ingress.class: {{ $.Values.global.ingress.class}}
spec:
Expand Down
2 changes: 2 additions & 0 deletions bmrg-flow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ global:
# The class of the ingress, it is used to mark the ingress resources to be picked-up by a specific
# controller. For IKS Community Ingress set it to "public-iks-k8s-nginx"
class: "nginx"
# Enable appRoot if you wish the 'app-root' i.e. '/' ingress annotation to redirect to the flow app
enableAppRoot: false
auth:
enabled: false
mode: basic
Expand Down

0 comments on commit 9175f87

Please sign in to comment.