Skip to content

Commit 09a28e3

Browse files
authored
CU-86c6kz47w edit patch all for custom resources edit flow (#478)
2 parents bbfef19 + 9cffb44 commit 09a28e3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

charts/komodor-agent/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ The command removes all the Kubernetes components associated with the chart and
160160
| capabilities.metrics | bool | `true` | Fetch workload metrics and send them to komodor backend |
161161
| capabilities.nodeEnricher | bool | `true` | Enable node enricher capabilities by the komodor agent |
162162
| capabilities.actions | bool | `true` | Allow users to perform actions on the cluster, granular access control is defined in the application<boolean> |
163+
| capabilities.crActions | bool | `true` | Allow komodor service account to edit and delete custom resources in the cluster |
163164
| capabilities.cost | object | See sub-values | Configure the agent cost capabilities |
164165
| capabilities.cost.hpa | bool | `true` | Enable patch and update permissions for KEDA ScaledObjects and ScaledJobs |
165166
| capabilities.helm | object | `{"enabled":true,"readonly":false}` | Enable helm capabilities by the komodor agent |

charts/komodor-agent/templates/clusterrole.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@ rules:
481481
verbs:
482482
- create
483483
{{- end}}
484+
{{- if .Values.capabilities.crActions}}
485+
- apiGroups: ["*"]
486+
resources: ["*"]
487+
verbs: ["delete", "list", "get", "watch", "patch"]
488+
{{- end}}
484489
{{- if .Values.capabilities.events.create }}
485490
- apiGroups:
486491
- ""

charts/komodor-agent/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ capabilities:
7373
nodeEnricher: true
7474
# capabilities.actions -- (bool) Allow users to perform actions on the cluster, granular access control is defined in the application<boolean>
7575
actions: true
76+
# capabilities.crActions -- (bool) Allow komodor service account to edit and delete custom resources in the cluster
77+
crActions: true
7678
# capabilities.cost -- Configure the agent cost capabilities
7779
# @default -- See sub-values
7880
cost:

0 commit comments

Comments
 (0)