[COMMON] Allow to read replicaset status
readiness check needs also to read replicaset status from extensions
API.
Issue-ID: OOM-1971
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Ie8f271ef7a4411340299ff7635594b66a1a1c8fd
diff --git a/kubernetes/common/serviceAccount/templates/role.yaml b/kubernetes/common/serviceAccount/templates/role.yaml
index 73f45b5..6d12164 100644
--- a/kubernetes/common/serviceAccount/templates/role.yaml
+++ b/kubernetes/common/serviceAccount/templates/role.yaml
@@ -28,6 +28,7 @@
- "" # "" indicates the core API group
- apps
- batch
+ - extensions
resources:
- pods
- deployments
@@ -35,6 +36,7 @@
- jobs/status
- statefulsets
- replicasets
+ - replicasets/status
- daemonsets
verbs:
- get
@@ -46,6 +48,7 @@
- "" # "" indicates the core API group
- apps
- batch
+ - extensions
resources:
- pods
- deployments
@@ -53,6 +56,7 @@
- jobs/status
- statefulsets
- replicasets
+ - replicasets/status
- daemonsets
- secrets
verbs: