Skip to content

Commit

Permalink
[explorer] Allow specifying extra ingress rules
Browse files Browse the repository at this point in the history
This can be used to, for example with the AWS ALB Ingress Controller:
- create redirects to a canonical hostname
- create static responses containing a small robots.txt
  • Loading branch information
omad committed Jun 14, 2024
1 parent 10645b4 commit 235e020
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stable/datacube-explorer/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ spec:
port:
number: {{ $externalPort }}
{{- end }}

{{- with .Values.ingress.extraRules}}
{{ toYaml . | indent 4}}
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions stable/datacube-explorer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ ingress:
hosts:
- ""
annotations: {}
# extraRules:
# - host: hello.world
# paths:
# - path: "/robots.txt"
# backend:
# service:
# name: what

0 comments on commit 235e020

Please sign in to comment.