Skip to content

Commit

Permalink
aggregator configurable schedule and env
Browse files Browse the repository at this point in the history
  • Loading branch information
pmariglia committed Mar 1, 2024
1 parent 0efca95 commit 53a5791
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/nx-cloud/ci/basic-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ fileServer:
cpu: '0.1'

aggregator:
schedule: "*/10 * * * *"
env:
- name: TEST_VARIABLE
value: 'test'
resources:
requests:
memory: '0.5Mi'
Expand Down
5 changes: 4 additions & 1 deletion charts/nx-cloud/templates/nx-cloud-aggregator-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
{{- include "nxCloud.env.mode" . | indent 12 }}
{{- include "nxCloud.env.verboseMongoLogging" . | indent 12 }}
{{- include "nxCloud.env.seqValues" . | indent 12 }}
{{- if .Values.aggregator.env}}
{{- toYaml .Values.aggregator.env | nindent 12 }}
{{- end }}
{{- if .Values.clearRecordsOlderThanDays }}
- name: NX_CLOUD_DB_RUN_DATA_EXPIRATION_IN_DAYS
value: '{{ .Values.clearRecordsOlderThanDays }}'
Expand Down Expand Up @@ -71,7 +74,7 @@ metadata:
labels:
{{- include "nxCloud.app.labels" . | indent 4 }}
spec:
schedule: '*/10 * * * *'
schedule: {{ .Values.aggregator.schedule | quote }}
concurrencyPolicy: Forbid
jobTemplate:
{{- include "nxCloud.aggregator.template" . | indent 4 }}
2 changes: 2 additions & 0 deletions charts/nx-cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@ fileServer:
fsGroupChangePolicy: "OnRootMismatch"

aggregator:
schedule: '*/10 * * * *'
image:
registry: ''
imageName: nx-cloud-aggregator
repository: ''
tag: ''
digest: ''
pullPolicy: Always
env: []
resources:
limits: {}
requests:
Expand Down

0 comments on commit 53a5791

Please sign in to comment.