Skip to content

Commit

Permalink
feat(cron): support nodeselector, affinity and toleration capabilities (
Browse files Browse the repository at this point in the history
#342)

* feat : add tolerations parameter in datahub-ingestion-cron chart

---------

Co-authored-by: david-leifker <[email protected]>
  • Loading branch information
sachinsaju and david-leifker authored Jul 21, 2023
1 parent d56333b commit 9425a23
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for LinkedIn DataHub
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.179
version: 0.2.180
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.10.4
Expand All @@ -26,7 +26,7 @@ dependencies:
repository: file://./subcharts/datahub-mce-consumer
condition: global.datahub_standalone_consumers_enabled
- name: datahub-ingestion-cron
version: 0.2.133
version: 0.2.134
repository: file://./subcharts/datahub-ingestion-cron
condition: datahub-ingestion-cron.enabled
- name: acryl-datahub-actions
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-ingestion-cron/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for Kubernetes
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.133
version: 0.2.134
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v0.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ spec:
{{- end }}
{{- end }}
restartPolicy: {{ default "OnFailure" .restartPolicy }}
{{- if .nodeSelector }}
nodeSelector:
{{- toYaml .nodeSelector | nindent 12 }}
{{- end }}
{{- if .affinity }}
affinity:
{{- toYaml .affinity | nindent 12 }}
{{- end }}
{{- if .tolerations }}
tolerations:
{{- toYaml .tolerations | nindent 12 }}
{{- end }}
volumes:
- name: recipe
configMap:
Expand Down
14 changes: 14 additions & 0 deletions charts/datahub/subcharts/datahub-ingestion-cron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ crons: {}
##
#backoffLimit:

## Node Selector parameters for job pod
##
#nodeSelector: {}
# region: us-west-1
# disk: ssd

## Affinity settings for job pod
##
#affinity : {}

## Toleration settings for job pod
##
#tolerations: []

# Add extra sidecar containers to deployment pod
extraSidecars: []
# - name: my-image-name
Expand Down

0 comments on commit 9425a23

Please sign in to comment.