# HG changeset patch
# User Xavier Garnier <xavier.garnier@logilab.fr>
# Date 1704710738 -3600
#      Mon Jan 08 11:45:38 2024 +0100
# Node ID 66ee4b835724df2ec2877071ca37ce5cc4e4bbc6
# Parent  90afb481922026549c81a9c8aec411dafdc38e51
feat(ingress)!: noindex value is mandatory (undefined by default)

diff --git a/templates/ingress.yaml b/templates/ingress.yaml
--- a/templates/ingress.yaml
+++ b/templates/ingress.yaml
@@ -15,6 +15,7 @@
     {{- with .Values.ingress.annotations }}
     {{- toYaml . | nindent 4 }}
     {{- end }}
+    {{- $noindex := .Values.ingress.noindex | required ".Values.ingress.noindex is required." -}}
     {{- if .Values.ingress.noindex }}
     nginx.ingress.kubernetes.io/server-snippet: |-
        add_header X-Robots-Tag "noindex, nofollow";
diff --git a/values.yaml b/values.yaml
--- a/values.yaml
+++ b/values.yaml
@@ -63,7 +63,7 @@
   tlsSecret: true
   path: /
   annotations: {}
-  noindex: true
+  # noindex: true
 
 # Additional ingresses
 additionalIngresses: []