From 235e020b041690256736d67f8387d430174e09e0 Mon Sep 17 00:00:00 2001 From: Damien Ayers Date: Fri, 14 Jun 2024 17:07:25 +1000 Subject: [PATCH] [explorer] Allow specifying extra ingress rules 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 --- stable/datacube-explorer/templates/ingress.yaml | 4 +++- stable/datacube-explorer/values.yaml | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/stable/datacube-explorer/templates/ingress.yaml b/stable/datacube-explorer/templates/ingress.yaml index 9d8989a..e35b199 100644 --- a/stable/datacube-explorer/templates/ingress.yaml +++ b/stable/datacube-explorer/templates/ingress.yaml @@ -33,5 +33,7 @@ spec: port: number: {{ $externalPort }} {{- end }} - +{{- with .Values.ingress.extraRules}} +{{ toYaml . | indent 4}} +{{- end }} {{- end }} \ No newline at end of file diff --git a/stable/datacube-explorer/values.yaml b/stable/datacube-explorer/values.yaml index 5c2bfa5..2822d0e 100644 --- a/stable/datacube-explorer/values.yaml +++ b/stable/datacube-explorer/values.yaml @@ -88,3 +88,10 @@ ingress: hosts: - "" annotations: {} +# extraRules: +# - host: hello.world +# paths: +# - path: "/robots.txt" +# backend: +# service: +# name: what