From 2312a7daebae18a9fc0316a09eb2ddf551cc4966 Mon Sep 17 00:00:00 2001 From: shir Date: Wed, 13 Nov 2024 15:10:41 +0200 Subject: [PATCH] [src] Automatic Rollback - Ctrl support StatefulSets rolling updates - CON-30637 --- .../ocean-kubernetes-controller/templates/clusterrole.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/ocean-kubernetes-controller/templates/clusterrole.yaml b/charts/ocean-kubernetes-controller/templates/clusterrole.yaml index 060317f..55ad9bf 100644 --- a/charts/ocean-kubernetes-controller/templates/clusterrole.yaml +++ b/charts/ocean-kubernetes-controller/templates/clusterrole.yaml @@ -77,7 +77,7 @@ rules: # feature: ocean/apply # --------------------------------------------------------------------------- - apiGroups: ["apps"] - resources: ["deployments", "daemonsets", "statefulsets"] + resources: ["deployments", "daemonsets"] verbs: ["get", "list", "patch", "update", "create", "delete"] - apiGroups: [""] resources: ["pods"] @@ -107,6 +107,9 @@ rules: - apiGroups: ["autoscaling"] resources: ["horizontalpodautoscalers"] verbs: ["patch", "update"] +- apiGroups: [ "apps" ] + resources: [ "deployments", "daemonsets", "statefulsets", "replicasets" ] + verbs: [ "get", "list", "watch", "patch", "update" ] {{- end }} # --------------------------------------------------------------------------- # feature: controller/leader-election (high-availability)