From 0bb3726749023af123d89cbad5a80d1766ac29a0 Mon Sep 17 00:00:00 2001 From: Rokas Maciulaitis Date: Fri, 14 Feb 2020 10:08:09 +0100 Subject: [PATCH] helm: adds watch permission for core kubernetes api client * Addresses reanahub/reana-job-controller/issue/3 --- helm/reana/templates/roles.yaml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/reana/templates/roles.yaml b/helm/reana/templates/roles.yaml index 80d4d234..651ca7b4 100644 --- a/helm/reana/templates/roles.yaml +++ b/helm/reana/templates/roles.yaml @@ -7,7 +7,7 @@ metadata: rules: - apiGroups: [""] # "" indicates the core API group resources: ["nodes", "nodes/status", "pods", "pods/log", "secrets", "persistentvolumeclaims", "configmaps"] - verbs: ["get", "list", "create", "update"] + verbs: ["get", "list", "create", "update", "watch"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["*"] diff --git a/setup.py b/setup.py index 5672c9b5..5daf6b93 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ history = open('CHANGES.rst').read() tests_require = [ - 'pytest-reana>=0.7.0.dev20191219,<0.8.0', + 'pytest-reana==0.7.0.dev20191219', ] extras_require = {