Skip to content

Commit

Permalink
Merge pull request #109 from nrwl/add-configurable-daemonset-tolerations
Browse files Browse the repository at this point in the history
Allow Configurable Daemonset Tolerations
  • Loading branch information
pmariglia committed Mar 19, 2024
2 parents d5b248f + 9f8f750 commit 3d4a0d9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/nx-agents/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: nx-agents
description: Nx Cloud Agents Helm Chart
type: application
version: 1.1.0
version: 1.2.0
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
9 changes: 8 additions & 1 deletion charts/nx-agents/ci/basic-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ controller:
deployment:
port: 9000
annotations: {}
env: {}
env: []
service:
port: 9000
type: ClusterIP
Expand All @@ -41,6 +41,13 @@ executor:

daemonset:
enabled: true
tolerations:
- effect: NoSchedule
key: kubernetes.io/arch
value: arm64
- effect: NoSchedule
key: kubernetes.io/arch
value: amd64
image:
registry: ''
imageName: ubuntu
Expand Down
4 changes: 4 additions & 0 deletions charts/nx-agents/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
labels:
name: nx-cloud-workflows-daemon
spec:
{{- with .Values.daemonset.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: nx-cloud-workflows-daemon
image: {{ include "nxCloud.images.daemonset.image" . }}
Expand Down
1 change: 1 addition & 0 deletions charts/nx-agents/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ executor:
# Additionally this feature can be retained, and you can update the provided script to run other things you would like on
# each node in your cluster.
daemonset:
tolerations: []
image:
registry: ''
imageName: ubuntu
Expand Down

0 comments on commit 3d4a0d9

Please sign in to comment.