Skip to content

Commit f548572

Browse files
committed
Better handling of pool_id
1 parent cd9bc68 commit f548572

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

charts/datahub-executor-worker/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: datahub-executor-worker
33
description: A Helm chart for datahub-executor-worker
44
type: application
5-
version: 0.0.16
5+
version: 0.0.17
66
appVersion: 0.3.8.2
77
maintainers:
88
- name: DataHub

charts/datahub-executor-worker/templates/workload.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,12 @@ spec:
134134
key: {{ ((.Values.global.datahub).gms).secretKey }}
135135
- name: DATAHUB_EXECUTOR_MODE
136136
value: "worker"
137+
{{- if hasKey .Values.global.datahub.executor "pool_id" }}
137138
- name: DATAHUB_EXECUTOR_POOL_ID
138-
value: {{ .Values.global.datahub.executor.pool_id | quote }}
139+
{{- else }}
140+
- name: DATAHUB_EXECUTOR_WORKER_ID
141+
{{- end }}
142+
value: {{ (.Values.global.datahub.executor).pool_id | default (.Values.global.datahub.executor).worker_id | quote }}
139143
- name: DATAHUB_EXECUTOR_INGESTION_MAX_WORKERS
140144
value: {{ .Values.global.datahub.executor.ingestions.max_workers | quote }}
141145
- name: DATAHUB_EXECUTOR_INGESTION_SIGNAL_POLL_INTERVAL

charts/datahub-executor-worker/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ global:
55
secretKey: datahub-access-token-secret-key
66
url: https://datahub.acryl.io/gms
77
executor:
8+
#worker_id: "DEPRECATED: use pool_id instead"
89
pool_id: "remote"
910
ingestions:
1011
max_workers: 4

0 commit comments

Comments
 (0)