From 69e13c8198e8698b1d9a2c43ed3901641d772de1 Mon Sep 17 00:00:00 2001
From: Maximilian Marschall <maximilian.marschall@3xm.at>
Date: Wed, 29 Mar 2023 09:05:49 +0200
Subject: [PATCH] timescaledb-single: Add services to Role, fix #599

Signed-off-by: Maximilian Marschall <maximilian.marschall@3xm.at>
---
 .../templates/role-timescaledb.yaml                   | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/charts/timescaledb-single/templates/role-timescaledb.yaml b/charts/timescaledb-single/templates/role-timescaledb.yaml
index 2694af1f..12b3739c 100644
--- a/charts/timescaledb-single/templates/role-timescaledb.yaml
+++ b/charts/timescaledb-single/templates/role-timescaledb.yaml
@@ -44,4 +44,15 @@ rules:
   - patch
   - update
   - watch
+  # add services to fix issue #599
+- apiGroups: [""]
+  resources: ["services"]
+  verbs:
+  - create
+  - get
+  - list
+  - patch
+  - update
+  - watch
+  - delete
 {{- end }}