diff --git a/templates/ingress.yaml b/templates/ingress.yaml index 29f2b0eec..9def2b1a8 100644 --- a/templates/ingress.yaml +++ b/templates/ingress.yaml @@ -16,7 +16,7 @@ metadata: {{- with .Values.airflow.labels }} {{ toYaml . | indent 4 }} {{- end }} - {{- if .Values.ingress.webserverAnnotations }} + {{- if or .Values.ingress.webserverAnnotations .Values.authSidecar.enabled }} annotations: {{- if .Values.authSidecar.enabled }} {{- toYaml .Values.authSidecar.annotations | nindent 4 }} @@ -83,7 +83,7 @@ metadata: {{- with .Values.airflow.labels }} {{ toYaml . | indent 4 }} {{- end }} - {{- if .Values.ingress.flowerAnnotations }} + {{- if or .Values.ingress.flowerAnnotations .Values.authSidecar.enabled }} {{ $ctx := . }} annotations: {{- if .Values.authSidecar.enabled }} @@ -157,7 +157,7 @@ metadata: {{- with .Values.airflow.labels }} {{ toYaml . | indent 4 }} {{- end }} - {{- if .Values.ingress.dagServerAnnotations }} + {{- if or .Values.ingress.dagServerAnnotations .Values.authSidecar.enabled }} {{ $ctx := . }} annotations: {{- if .Values.authSidecar.enabled }}