Skip to content

Commit

Permalink
Add nodeSelector, affinity, tolerations support in mediation statefulset
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Dec 20, 2023
1 parent 1ce5f33 commit 9b74d6d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/alfresco-search-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
name: alfresco-search-enterprise
description: A Helm chart for deploying Alfresco Elasticsearch connector
type: application
version: 3.1.0-alpha.1
version: 3.1.0-alpha.2
appVersion: 4.0.0.1
dependencies:
- name: alfresco-common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,15 @@ spec:
path: /actuator/health
port: http
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- with $.Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $.Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $.Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
suite: test liveindexing template rendering
templates:
- statefulset-mediation.yaml
tests:
- it: render nodeSelector properly
set:
nodeSelector:
node_label: node_value
asserts:
- equal:
path: spec.template.spec.nodeSelector.node_label
value: node_value
template: statefulset-mediation.yaml

0 comments on commit 9b74d6d

Please sign in to comment.