Skip to content

Commit

Permalink
Merge pull request #95 from nrwl/steve/chore/controller-node-affinity
Browse files Browse the repository at this point in the history
chore(charts): add more controller customisation
  • Loading branch information
stevepentland authored Feb 28, 2024
2 parents 54ed3d1 + 206af5b commit 7750567
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
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.0.0-rc.1
version: 1.0.0-rc.2
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
15 changes: 15 additions & 0 deletions charts/nx-agents/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ spec:
spec:
securityContext:
runAsNonRoot: true
{{- if .Values.controller.deployment.affinity }}
affinity:
{{- toYaml .Values.controller.deployment.affinity | nindent 8 }}
{{- end }}
{{- if .Values.controller.deployment.tolerations }}
tolerations:
{{- toYaml .Values.controller.deployment.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.controller.deployment.nodeSelector }}
nodeSelector:
{{- toYaml .Values.controller.deployment.nodeSelector | nindent 8 }}
{{- end }}
containers:
- command:
- /nx-cloud-workflow-controller
Expand All @@ -31,6 +43,9 @@ spec:
- --executor-env={{ $key }}={{ $value }}
{{- end }}
- --workflow-service-address=http://nx-cloud-workflow-controller-service:9000
{{- range $key, $value := .Values.controller.deployment.args }}
- --{{ $key }}={{ $value }}
{{- end }}
image: {{ include "nxCloud.images.workflowController.image" . }}
imagePullPolicy: {{ .Values.controller.image.pullPolicy | quote }}
{{- if .Values.controller.resources }}
Expand Down
4 changes: 4 additions & 0 deletions charts/nx-agents/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ controller:
deployment:
port: 9000
annotations: {}
affinity: {}
tolerations: {}
nodeSelector: {}
args: {}
service:
port: 9000
type: ClusterIP
Expand Down

0 comments on commit 7750567

Please sign in to comment.