From a0e1499b7515f90f22110b3149eb060a9b900eea Mon Sep 17 00:00:00 2001 From: Alejandro Moreno Date: Thu, 21 Mar 2024 12:38:32 +0100 Subject: [PATCH] fix(helm): role binding annotations (#1494) **Description of the change** Use the right context for `commonAnnotations` in namespaced role bindings. **Benefits** Fix a bug preventing namespaced role bindings to be created. **Applicable issues** - fixes #1493 Signed-off-by: Alejandro Moreno --- helm/sealed-secrets/Chart.yaml | 2 +- helm/sealed-secrets/templates/role-binding.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helm/sealed-secrets/Chart.yaml b/helm/sealed-secrets/Chart.yaml index ed727f382..360f6651c 100644 --- a/helm/sealed-secrets/Chart.yaml +++ b/helm/sealed-secrets/Chart.yaml @@ -14,6 +14,6 @@ maintainers: url: https://github.com/bitnami-labs/sealed-secrets name: sealed-secrets type: application -version: 2.15.1 +version: 2.15.2 sources: - https://github.com/bitnami-labs/sealed-secrets diff --git a/helm/sealed-secrets/templates/role-binding.yaml b/helm/sealed-secrets/templates/role-binding.yaml index e86d2e1a8..48d12eead 100644 --- a/helm/sealed-secrets/templates/role-binding.yaml +++ b/helm/sealed-secrets/templates/role-binding.yaml @@ -63,8 +63,8 @@ metadata: {{- include "sealed-secrets.render" ( dict "value" $.Values.rbac.labels "context" $) | nindent 4 }} {{- end }} annotations: - {{- if .Values.commonAnnotations }} - {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- if $.Values.commonAnnotations }} + {{- include "sealed-secrets.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} roleRef: apiGroup: rbac.authorization.k8s.io