From 9d38d2159ba109436eb5a589d2bb33f844aec257 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:42:23 +0300 Subject: [PATCH] fix(traefik): add missing rbacs (#24262) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # ``` W0724 23:13:34.467702 1 reflector.go:547] k8s.io/client-go@v0.30.0/tools/cache/reflector.go:232: failed to list *v1.EndpointSlice: endpointslices.discovery.k8s.io is forbidden: User "system:serviceaccount:traefik:traefik" cannot list resource "endpointslices" in API group "discovery.k8s.io" at the cluster scope E0724 23:13:34.467728 1 reflector.go:150] k8s.io/client-go@v0.30.0/tools/cache/reflector.go:232: Failed to watch *v1.EndpointSlice: failed to list *v1.EndpointSlice: endpointslices.discovery.k8s.io is forbidden: User "system:serviceaccount:traefik:traefik" cannot list resource "endpointslices" in API group "discovery.k8s.io" at the cluster scope W0724 23:13:47.952823 1 reflector.go:547] k8s.io/client-go@v0.30.0/tools/cache/reflector.go:232: failed to list *v1.Node: nodes is forbidden: User "system:serviceaccount:traefik:traefik" cannot list resource "nodes" in API group "" at the cluster scope E0724 23:13:47.952853 1 reflector.go:150] k8s.io/client-go@v0.30.0/tools/cache/reflector.go:232: Failed to watch *v1.Node: failed to list *v1.Node: nodes is forbidden: User "system:serviceaccount:traefik:traefik" cannot list resource "nodes" in API group "" at the cluster scope ``` **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- charts/premium/traefik/Chart.yaml | 2 +- charts/premium/traefik/values.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/charts/premium/traefik/Chart.yaml b/charts/premium/traefik/Chart.yaml index 0cc66655f35..2831e11ee48 100644 --- a/charts/premium/traefik/Chart.yaml +++ b/charts/premium/traefik/Chart.yaml @@ -35,4 +35,4 @@ sources: - https://github.com/truecharts/containers/tree/master/apps/traefik - https://traefik.io/ type: application -version: 29.2.0 +version: 29.2.1 diff --git a/charts/premium/traefik/values.yaml b/charts/premium/traefik/values.yaml index a82378c30a4..7728e465482 100644 --- a/charts/premium/traefik/values.yaml +++ b/charts/premium/traefik/values.yaml @@ -316,6 +316,22 @@ rbac: - get - list - watch + - apiGroups: + - "" + resources: + - nodes + verbs: + - get + - list + - watch + - apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch # -- The service account the pods will use to interact with the Kubernetes API serviceAccount: main: