From 1404c68a22b5dd1cefa30afdac5be2a7426083d6 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Tue, 27 Jun 2023 20:50:02 +0300 Subject: [PATCH] :zap: Fix the `annotations` in `Ingress` --- helm-chart/templates/11-ingress.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/helm-chart/templates/11-ingress.yaml b/helm-chart/templates/11-ingress.yaml index b09d6959b..91c7adb47 100644 --- a/helm-chart/templates/11-ingress.yaml +++ b/helm-chart/templates/11-ingress.yaml @@ -6,15 +6,14 @@ metadata: annotations: certmanager.k8s.io/cluster-issuer: {{ .Values.tap.ingress.certmanager }} nginx.ingress.kubernetes.io/rewrite-target: /$2 + {{- if .Values.tap.annotations }} + {{- toYaml .Values.tap.annotations | nindent 4 }} + {{- end }} creationTimestamp: null labels: {{- if .Values.tap.labels }} {{- toYaml .Values.tap.labels | nindent 4 }} {{- end }} - annotations: - {{- if .Values.tap.annotations }} - {{- toYaml .Values.tap.annotations | nindent 4 }} - {{- end }} name: kubeshark-ingress namespace: {{ .Values.tap.selfnamespace }} spec: