Skip to content

Commit

Permalink
Fix nodeSelector configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Dec 19, 2023
1 parent c53466a commit f036c84
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/alfresco-repository/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: alfresco-repository
description: Alfresco content repository Helm chart
type: application
version: 0.1.1
version: 0.1.2
appVersion: 23.1.1
dependencies:
- name: alfresco-common
Expand Down
2 changes: 1 addition & 1 deletion charts/alfresco-repository/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# alfresco-repository

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 23.1.1](https://img.shields.io/badge/AppVersion-23.1.1-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 23.1.1](https://img.shields.io/badge/AppVersion-23.1.1-informational?style=flat-square)

Alfresco content repository Helm chart

Expand Down
4 changes: 1 addition & 3 deletions charts/alfresco-repository/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ spec:
spec:
serviceAccountName: {{ include "alfresco-repository.serviceAccountName" . }}
{{- include "alfresco-common.component-pod-security-context" .Values | indent 4 }}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }}
{{- include "alfresco-common.imagePullSecrets" . | indent 6 }}
initContainers:
- name: wait-db-ready
Expand Down Expand Up @@ -221,7 +219,7 @@ spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriod }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | indent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
Expand Down
11 changes: 11 additions & 0 deletions charts/alfresco-repository/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,14 @@ tests:
path: spec.template.spec.containers
count: 2
template: deployment.yaml

- it: should allow setting nodeSelector properly
values: *test_values
set:
nodeSelector:
node_label: node_value
asserts:
- equal:
path: spec.template.spec.nodeSelector.node_label
value: node_value
template: deployment.yaml

0 comments on commit f036c84

Please sign in to comment.