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)