Skip to content
1 change: 1 addition & 0 deletions charts/komodor-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ The command removes all the Kubernetes components associated with the chart and
| capabilities.metrics | bool | `true` | Fetch workload metrics and send them to komodor backend |
| capabilities.nodeEnricher | bool | `true` | Enable node enricher capabilities by the komodor agent |
| capabilities.actions | bool | `true` | Allow users to perform actions on the cluster, granular access control is defined in the application<boolean> |
| capabilities.crActions | bool | `true` | Allow komodor service account to edit and delete custom resources in the cluster |
| capabilities.cost | object | See sub-values | Configure the agent cost capabilities |
| capabilities.cost.hpa | bool | `true` | Enable patch and update permissions for KEDA ScaledObjects and ScaledJobs |
| capabilities.helm | object | `{"enabled":true,"readonly":false}` | Enable helm capabilities by the komodor agent |
Expand Down
5 changes: 5 additions & 0 deletions charts/komodor-agent/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,11 @@ rules:
verbs:
- create
{{- end}}
{{- if .Values.capabilities.crActions}}
- apiGroups: ["*"]
resources: ["*"]
verbs: ["delete", "list", "get", "watch", "patch"]
{{- end}}
{{- if .Values.capabilities.events.create }}
- apiGroups:
- ""
Expand Down
2 changes: 2 additions & 0 deletions charts/komodor-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ capabilities:
nodeEnricher: true
# capabilities.actions -- (bool) Allow users to perform actions on the cluster, granular access control is defined in the application<boolean>
actions: true
# capabilities.crActions -- (bool) Allow komodor service account to edit and delete custom resources in the cluster
crActions: true
# capabilities.cost -- Configure the agent cost capabilities
# @default -- See sub-values
cost:
Expand Down