From 4a224320d86367f2a1b5bc3f2810cf11c1366c1d Mon Sep 17 00:00:00 2001
From: josedev-union <jose.bautista.barato@gmail.com>
Date: Sun, 30 Oct 2022 19:57:54 +0200
Subject: [PATCH] Fix resource name in role of ingress chart

Change-Id: I05a959b4678852699b7b5531cd8303e15662b372
---
 ingress/Chart.yaml                        | 2 +-
 ingress/templates/deployment-ingress.yaml | 2 +-
 releasenotes/notes/ingress.yaml           | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ingress/Chart.yaml b/ingress/Chart.yaml
index 72c98b6f7..b5372e63d 100644
--- a/ingress/Chart.yaml
+++ b/ingress/Chart.yaml
@@ -15,7 +15,7 @@ apiVersion: v1
 appVersion: v0.42.0
 description: OpenStack-Helm Ingress Controller
 name: ingress
-version: 0.2.10
+version: 0.2.11
 home: https://github.com/kubernetes/ingress
 sources:
   - https://github.com/kubernetes/ingress
diff --git a/ingress/templates/deployment-ingress.yaml b/ingress/templates/deployment-ingress.yaml
index 780af3a32..021300194 100644
--- a/ingress/templates/deployment-ingress.yaml
+++ b/ingress/templates/deployment-ingress.yaml
@@ -113,7 +113,7 @@ rules:
     resources:
       - configmaps
     resourceNames:
-      - {{ printf "%s-%s" .Release.Name .Values.conf.controller.INGRESS_CLASS | quote }}
+      - {{ $envAll.Release.Name }}
     verbs:
       - get
       - update
diff --git a/releasenotes/notes/ingress.yaml b/releasenotes/notes/ingress.yaml
index 8bf7d487f..06d44368d 100644
--- a/releasenotes/notes/ingress.yaml
+++ b/releasenotes/notes/ingress.yaml
@@ -14,4 +14,5 @@ ingress:
   - 0.2.8 Uplift ingress to 1.1.3
   - 0.2.9 Added OCI registry authentication
   - 0.2.10 Update neutron images to xena release
+  - 0.2.11 Fix resource name in the role
 ...