Skip to content

Commit

Permalink
Allow nodeSelector and tolerations to be applied to all components gl…
Browse files Browse the repository at this point in the history
…obally (#421)
  • Loading branch information
darnaut authored Dec 27, 2023
1 parent cc656aa commit 782e147
Show file tree
Hide file tree
Showing 21 changed files with 43 additions and 43 deletions.
14 changes: 7 additions & 7 deletions charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ 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.3.22
version: 0.3.23
# 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.12.1
dependencies:
- name: datahub-gms
version: 0.2.161
version: 0.2.162
repository: file://./subcharts/datahub-gms
condition: datahub-gms.enabled
- name: datahub-frontend
version: 0.2.153
version: 0.2.154
repository: file://./subcharts/datahub-frontend
condition: datahub-frontend.enabled
- name: datahub-mae-consumer
version: 0.2.155
version: 0.2.156
repository: file://./subcharts/datahub-mae-consumer
condition: global.datahub_standalone_consumers_enabled
- name: datahub-mce-consumer
version: 0.2.157
version: 0.2.158
repository: file://./subcharts/datahub-mce-consumer
condition: global.datahub_standalone_consumers_enabled
- name: datahub-ingestion-cron
version: 0.2.138
version: 0.2.139
repository: file://./subcharts/datahub-ingestion-cron
condition: datahub-ingestion-cron.enabled
- name: acryl-datahub-actions
version: 0.2.142
version: 0.2.143
repository: file://./subcharts/acryl-datahub-actions
condition: acryl-datahub-actions.enabled
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/acryl-datahub-actions/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.142
version: 0.2.143
# 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.0.11
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ spec:
{{- with .Values.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
{{- with default .Values.global.tolerations .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-frontend/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.153
version: 0.2.154
# 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.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,15 @@ spec:
{{- with .Values.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
{{- with default .Values.global.tolerations .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-gms/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for LinkedIn DataHub's datahub-gms component
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.161
version: 0.2.162
# 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.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ spec:
{{- with .Values.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
{{- with default .Values.global.tolerations .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
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.138
version: 0.2.139
# 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.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ spec:
{{- toYaml .extraSidecars | nindent 10 }}
{{- end }}
restartPolicy: {{ default "OnFailure" .restartPolicy }}
{{- if .nodeSelector }}
{{- with default .Values.global.nodeSelector .nodeSelector }}
nodeSelector:
{{- toYaml .nodeSelector | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .affinity }}
affinity:
{{- toYaml .affinity | nindent 12 }}
{{- end }}
{{- if .tolerations }}
{{- with default .Values.global.tolerations .tolerations }}
tolerations:
{{- toYaml .tolerations | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: recipe
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-mae-consumer/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.155
version: 0.2.156
# 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.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,15 @@ spec:
{{- with .Values.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
{{- with default .Values.global.tolerations .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-mce-consumer/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.157
version: 0.2.158
# 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.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ spec:
{{- with .Values.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
{{- with default .Values.global.tolerations .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ spec:
{{- with .Values.datahubUpgrade.cleanupJob.extraSidecars }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.datahubUpgrade.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.tolerations }}
{{- with default .Values.global.tolerations .Values.datahubUpgrade.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ spec:
{{- with .Values.datahubUpgrade.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.datahubUpgrade.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.datahubUpgrade.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.tolerations }}
{{- with default .Values.global.tolerations .Values.datahubUpgrade.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ spec:
{{- with .Values.datahubUpgrade.restoreIndices.extraSidecars }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.datahubUpgrade.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubUpgrade.tolerations }}
{{- with default .Values.global.tolerations .Values.datahubUpgrade.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ spec:
{{- with .Values.datahubSystemUpdate.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.datahubSystemUpdate.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.datahubSystemUpdate.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubSystemUpdate.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datahubSystemUpdate.tolerations }}
{{- with default .Values.global.tolerations .Values.datahubSystemUpdate.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/datahub/templates/elasticsearch-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ spec:
{{- with .Values.elasticsearchSetupJob.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.elasticsearchSetupJob.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.elasticsearchSetupJob.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.elasticsearchSetupJob.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.elasticsearchSetupJob.tolerations }}
{{- with default .Values.global.tolerations .Values.elasticsearchSetupJob.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/datahub/templates/kafka-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ spec:
{{- with .Values.kafkaSetupJob.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.kafkaSetupJob.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.kafkaSetupJob.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.kafkaSetupJob.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.kafkaSetupJob.tolerations }}
{{- with default .Values.global.tolerations .Values.kafkaSetupJob.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/datahub/templates/mysql-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ spec:
{{- with .Values.mysqlSetupJob.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.mysqlSetupJob.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.mysqlSetupJob.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.mysqlSetupJob.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.mysqlSetupJob.tolerations }}
{{- with default .Values.global.tolerations .Values.mysqlSetupJob.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/datahub/templates/postgresql-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ spec:
{{- with .Values.postgresqlSetupJob.extraSidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.postgresqlSetupJob.nodeSelector }}
{{- with default .Values.global.nodeSelector .Values.postgresqlSetupJob.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.postgresqlSetupJob.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.postgresqlSetupJob.tolerations }}
{{- with default .Values.global.tolerations .Values.postgresqlSetupJob.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit 782e147

Please sign in to comment.