From cfe39bb24a6aa8cd2a5e58fdb8eeb01ba83c6f3d Mon Sep 17 00:00:00 2001 From: Cem Deniz Kabakci Date: Thu, 14 Mar 2024 15:36:07 +0100 Subject: [PATCH] Add role to create events Co-authored-by: Jose Riguera --- charts/mimirrules-controller/Chart.yaml | 4 ++-- charts/mimirrules-controller/templates/role.yaml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/mimirrules-controller/Chart.yaml b/charts/mimirrules-controller/Chart.yaml index 8414607..93632b6 100644 --- a/charts/mimirrules-controller/Chart.yaml +++ b/charts/mimirrules-controller/Chart.yaml @@ -21,10 +21,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.6 +version: 1.0.7 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.0.6" +appVersion: "1.0.7" diff --git a/charts/mimirrules-controller/templates/role.yaml b/charts/mimirrules-controller/templates/role.yaml index d15db02..03993d5 100644 --- a/charts/mimirrules-controller/templates/role.yaml +++ b/charts/mimirrules-controller/templates/role.yaml @@ -36,9 +36,17 @@ rules: - get - patch - update +- apiGroups: + - "" + resources: + - events + verbs: + - get + - create --- {{- end }} + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role