Skip to content

Commit 654bc90

Browse files
authored
Merge pull request #183 from nrwl/allow-leases
feat(nx-agents): Allow leases get/create/update
2 parents 0b5e270 + 1b70b82 commit 654bc90

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

agents-guide/AGENTS-GUIDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ Note on storage:
6262
- `AZURE_CONNECTION_STRING=...`
6363
4. You'll then need to make sure your pods either have the correct service account attached for interacting with the above buckets (see [the AWS example](./AWS-AGENTS-GUIDE.md#connecting-an-s3-bucket))
6464
65+
### Kubernetes permissions
66+
67+
The Nx Agents helm chart requires certain Kubernetes RBAC permissions to function correctly. The chart includes a Role and RoleBinding that grant the necessary permissions to the workflow controller service account.
68+
69+
If you are managing permissions yourself (e.g., using a pre-existing service account or a separate RBAC configuration), please consult the permissions defined in [`charts/nx-agents/templates/roles.yaml`](../charts/nx-agents/templates/roles.yaml) to ensure your configuration includes all required permissions.
70+
6571
### Connect NxCloud to your Nx Agents deployment
6672
6773
These are the options you can use to configure how NxCloud connects to your Nx Agents cluster.

charts/nx-agents/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: nx-agents
33
description: Nx Cloud Agents Helm Chart
44
type: application
5-
version: 1.2.14
5+
version: 1.3.0
66
maintainers:
77
- name: nx
88
url: "https://nx.app/"

charts/nx-agents/templates/roles.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ rules:
6161
- jobs/status
6262
verbs:
6363
- get
64+
- apiGroups:
65+
- coordination.k8s.io
66+
resources:
67+
- leases
68+
verbs:
69+
- get
70+
- create
71+
- update
6472
{{- end }}
6573
{{- if not .Values.roles.runner.existingRole }}
6674
---

0 commit comments

Comments
 (0)